Inactive [INACTIVE][INFO] HeroicDeath v1.11.2: Customizable server broadcasts on player death [1185]

Discussion in 'Inactive/Unsupported Plugins' started by SquallSeeD31, Feb 2, 2011.

  1. Offline

    SquallSeeD31

    HeroicDeath - Player Death Notification Plugin (v1.11.2)
    Download HeroicDeath v1.11.2 [CraftBukkit 1174+]
    Download HeroicDeath v1.9.1 [CraftBukkit 1035~1173]
    Download HeroicDeath v1.8.2 [CraftBukkit 561~1034]
    Download HeroicDeath v1.6.1 [CraftBukkit 349~560]
    Download HeroicDeath v1.3.1 [CraftBukkit 348-]
    Latest Jar Only | In Development Jar

    COMPATIBILITY WARNING
    Due to API changes, if you are not using the latest Recommended Build of CraftBukkit, DO NOT download the latest build of HeroicDeath. I have provided links to all legacy versions of HeroicDeath based on which CraftBukkit versions they support.

    CraftIRC Integration
    Do you use CraftIRC? Do you want HeroicDeath to send its death messages to your IRC channel? Xon has developed a helper plugin to do just that! I do not maintain or test this plugin, but I am happy to endorse it and link it for any CraftIRC/HeroicDeath users who want to use both together.

    https://github.com/Xon/HeroicDeathToCraftIRC/downloads

    JSONAPI Integration
    Xon has ALSO developed a helper plugin that pushes HeroicDeath messages to JSONAPI, allowing server admins to easily procure deaths via anything capable of reading a JSON string. Thanks, Xon!

    https://github.com/downloads/Xon/HeroicDeathToJSONAPI/HeroicDeathToJSONAPI.jar

    Features
    • Broadcast cause of death when a player dies
    • Shows who killed whom in PvP and with what item
    • Shows which kind of monster was responsible for eating a player
    • Optionally shows which world they were killed in!
    • Define an unlimited (within reason) number of custom messages based on cause of death, and a random message will be chosen
    • Log deaths to a configurable file, including timestamp and location of death!
    • Send messages on a per-world basis or to the whole server, configure which worlds should get messages and which shouldn't!
    • Define the text color to be used for the message, the player(s) involved, and the "murder weapon" (for PvP deaths)
    • Customize item names to be displayed for PvP deaths (Ex. "Excalibur" instead of "Gold Sword")
    • Supports items with durability! (wood, coal, dye, wool)
    • Item list doesn't need to be updated for future Minecraft patches! (If an item is not defined in the items file, the name of its Material will be prettified and used by default)
    • Supports following causes of death (all lines below the :Tag will be treated as messages for that type of death):
      Code:
      :Drown
                          :Cactus
                          :Fire
                          :Explosion
                          :Creeper
                          :Ghast
                          :Slime
                          :Zombie
                          :PigZombie
                          :Spider
                          :Skeleton
                          :Giant
                          :Wolf
                          :Enderman
                          :CaveSpider
                          :Silverfish
                          :Chicken
                          :Cow
                          :Pig
                          :Sheep
                          :Squid
                          :Fall
                          :PVP
                          :Void
                          :Lava
                          :Other
                          :Suffocation
                          :Dispenser
                          :Lightning
                          :Suicide
                          :Starvation
    Screenshot






    [​IMG]

    Installation
    1. FAST INSTALL: Drop the JAR in your plugins directory and reload plugins; HeroicDeath will automatically create default files. If you want to edit them before your first run:
    2. Download latest .ZIP archive from the link at the top
    3. Extract the archive into your main server directory (archive contains directory mapping)
    4. Open /plugins/HeroicDeath/config.yml and configure to taste
    5. Open /plugins/HeroicDeath/heroicdeath.messages and add/remove/edit death messages
    6. Open /plugins/HeroicDeath/heroicdeath.items and add/remove/edit item names
    7. Save all configuration files and reload your server
    Configuration


    config.yml
    The config file contains default text colors and logging preferences. You can specify the chat colors that will be used for broadcasting a death message, displaying the name of the dead (and their killer if applicable), and displaying the name of the item used to kill the player (for PvP deaths). You can now also choose whether or not to log death data, death messages, and a few formatting choices for your logs.

    This file is saved in the YAML format, so please be sure to maintain the formatting and change only the element values.
    Default configuration:

    Show Spoiler
    Code:
    # HeroicDeath Configuration
    # Messages are defined in heroicdeath.messages
    # Items (for PvP kills) are defined in heroicdeath.items
    # This file is for configuration of colors, log preferences and localized mob names
    ## Color options
    ## message: Text color of death notifications, wrapped around names/item.
    ## name: Color for the name of victim and killer.
    ## item: Color for the name of the item used in a PvP death.
    #Color is defined according to the Bukkit enum ChatColor
    #Acceptable entries:
    ##BLACK
    ##DARK_BLUE
    ##DARK_GREEN
    ##DARK_AQUA
    ##DARK_RED
    ##DARK_PURPLE
    ##GOLD
    ##GRAY
    ##DARK_GRAY
    ##BLUE
    ##GREEN
    ##AQUA
    ##RED
    ##LIGHT_PURPLE
    ##YELLOW
    ##WHITE
    #
    #If color entered is inappropriate, HeroicDeath will default to the following values:
    ##message: RED
    ##name: DARK_AQUA
    ##item: GOLD
    colors:
        message: RED
        name: DARK_AQUA
        item: GOLD
    
    #Logging Preferences:
    ##data: true to log a serialized object representing all the relevant information associated with a death
    ##messages: true to log death messages (as output to the server) to a separate file
    ##time: Whether or not to timestamp messages (if logging messages), and what timestamp format to use for data/messages
    ###stamp: true to timestamp messages
    ###format: Uses format strings from Java SimpleDateFormat.  Read all here: http://download.oracle.com/javase/1.4.2/docs/api/java/text/SimpleDateFormat.html
    ##files: Filenames to store data/messages in.  A server admin could ostensibly change this value daily/weekly/monthly for collection of timed logs
    ###data: Data storage filename
    ###messages: Messages storage filename
    log:
        data: true
        messages: true
        time:
            stamp: true
            format: MM/dd/yyyy HH:mm:ss z
        files:
            data: death_data.log
            messages: death_messages.log
    
    #Event Support:
    ##If you only want HeroicDeath to send its custom event for other plugins to pick up, and NOT send the death message, set this to true.
    events:
        only: false
    
    #Localized monster names:
    ##If you would like to specify custom localization for the mob names, edit the defaults below
    monsters:
        ghast: Ghast
        slime: Slime
        monster: Monster
        zombie: Zombie
        pigzombie: PigZombie
        spider: Spider
        creeper: Creeper
        skeleton: Skeleton
        wolf: Wolf
        unknown: Unknown
        giant: Giant
    #Options
    ##useDisplayName: Set to true if you want HeroicDeath to display the player's display name instead of their fixed character name.
    ##serverBroadcast: Set to FALSE if you want HeroicDeath to only broadcast its messages in the world they belong to.
    ##worlds: Lists of quiet/loud worlds for broadcast targeting. NOTE: World names are case-sensitive.
    ###quiet: Worlds listed here will NEVER receive ANY HeroicDeath broadcasts.
    ###loud: Worlds listed here will ALWAYS receive ALL HeroicDeath broadcasts.
    options:
        useDisplayName: false
        serverBroadcast: true
        worlds:
            quiet: [peacefulworld, noobworld]
            loud: [pvpworld, nether]
    



    heroicdeath.messages
    Contains all the possible messages that can be displayed, sorted by type of death. Every line under a death type label is treated as a message for that death type, until the next label is reached. Labels are prefixed with the colon ":" and are self-explanatory.
    Variables accepted in messages:

    Code:
    %d holds the name of the dead player.
    %a holds the name of the attacking entity (player or monster) for PVP and Monster deaths.
    %i holds the name of the attacking player's current item for PVP deaths.
    %w holds the world the death occurred in
    heroicdeath.items
    This file contains custom names for the item a PvP killer is holding. The names here will be replaced in the %i marker for PvP deaths. If a mapping is not provided for an item in this file, a default name will be used automatically.
    Item Format: NAME:ID:<Optional>DATA
    Item IDs and Data Values may be found on the Minecraft Wiki
    Optional DATA parameter uses hex notation, so purple wool would be "purple wool:35:0xa"

    Localization
    If you have translated heroicdeath.messages into another language and would like to share your translation with the community, let me know! I'd be happy to share it here in the OP for those looking.

    German - By Keav - http://dl.dropbox.com/u/40701071/heroicdeath.messages

    Changelog (Download Full Changelog)
    Version 1.11.2
    • Added 1.8 mobs Enderman, Cave Spider, Silverfish
    • Added passive mobs Chicken, Cow, Pig, Sheep, Squid
    Version 1.11.1
    • Fixed an exception that would occur if the player dies without being damaged first (such as by a rogue plugin)
    Version 1.11.0
    • Added support for MC 1.8.1 death messages (by removing them)
    • Added new MC 1.8.1 items
    • Added support for STARVATION DamageCause
    Version 1.10.0
    • Added support for SUICIDE DamageCause, mainly for the /suicide and /kill default commands.
     
    kahlilnc, Chike, SmartyGeek and 20 others like this.
  2. Can anyone confirm if this works for 733?
     
  3. Offline

    wears_Fedora

    It worked for 719.
    I haven't died yet in 733, but it doesn't appear that anything changed that would break it.
     
  4. Offline

    xPaw

    Works fine
     
    Mr_Fj likes this.
  5. Offline

    valdark

    yup fine on 733
     
  6. Offline

    xSniperAngel

    How do I disable the '/back' command to allow users to return to their deathpoint. I haven't really tested it on my players yet, but I dont want them to access that command. Is it me or is it another plugin affecting it. Damn you Essentials.
     
  7. Offline

    BigBlueGER

    Hey, umm, any chance we might get :Thunder? =P
     
  8. Offline

    SquallSeeD31

    Really? Didn't I release it? Sorry... it's been ready for a while now! Download 1.8.0 I just released it now, I mean I released it last week... yeah...
     
  9. Offline

    Kartus

    Please remove or update this (v.1.7.3) in first line of OT:
    When i download "HeroicDeath-1.8.0-bin.zip" i got a default "heroicdeath.messages" but without a line with ":Thunder". So I don't know what line i have to add in my config. I think it should be ":Thunder". i added this:
    Code:
    :Thunder
    
    but when i make "/mn lightning kartus" from plugin "MotherNature" with only 1,5 lifehearts, i got deathmessage from ":Fire"

    using #735 + 1.8.0
     
  10. Offline

    SquallSeeD31

    Fixed in 1.8.1 (has to do with how Bukkit reports damage events, I had to craft a workaround that made sense)
     
  11. Offline

    Kartus

    suggest: support following characters: ü,ö,ä
    atm for german word "Löcher" i get "Lcher" ;)
     
  12. Offline

    BigBlueGER

    Yeah, got the same problem since the latest version.
    afaik it worked with 1.7. Might want to take a look at it? ;D
     
  13. Offline

    SquallSeeD31

    All of these characters work fine, but the file heroicdeath.messages must be encoded in ISO-8859-1 (ANSI), not UTF-8. I'm having trouble with Minecraft and UTF-8, but ANSI it works fine.
     
  14. Offline

    Kartus

    It doesn't seem to work with ANSI (took original heroicdeath.messages and copy&paste my own entries) + ö,ü,ä
     
  15. This plugin is simply amazing, I created a archivement get in the new 1.5 style for this:

    [​IMG]

    This is really the best message :D
     
  16. Offline

    SquallSeeD31

    looool it would be awesome if we could make our own achievement messages.
     
  17. Offline

    PhantomGamers

    Req: Add "Killed by Chuck Norris" officially. :D
    Love this plugin.
     
  18. Offline

    valdark

    *Runs to go add this to deathlist
     
  19. Offline

    OrtwinS

    Could there come an indication by who's wolf you got killed?

    It now says 'X got killed by an angry wolf' or some other semi-funny message I put in for wild animals.
    I'd like to have the possibility to have something like 'Y's wolf took down X'.

    Or are there no 'wolfOwnedBy()' hook-things in craftbukkit yet?
     
  20. Offline

    Hawtin

    Hat wer zufällig eine German version für mich?
     
  21. Offline

    SquallSeeD31

    There are no such hooks in CraftBukkit yet, and I still haven't figured out how they appear in the notchcode. It *seems* like the wolf's "target" is its owner, but if it's attacking you, wouldn't you then be its target? But you're clearly not the owner... Maybe the wolf's target is permanently set as the owner, and when it's targeting, it intelligently hops up the chain and targets your target without changing its target which is you? ... Follow? :p

    So it bears further testing, but right now no.
     
  22. German version? Änder die Meldungen doch einfach selbst, öffne die heroicdeath.messages im HeroicDeath Ordner in notepad und änder alles nötige.
     
  23. Offline

    OrtwinS

    No, but I appriciate you are working on it. :D
     
  24. Offline

    Kartus

    please help, how can i fix this? i saw ANSI in "Notepad++" and not UTF-8. And even when i take original heroicdeath.messages file from your OT, open it and edit lines and save it (still ANSI). doesn't work...
     
  25. Offline

    Sphax

    Is this plugin supports special characters like "é", "à", "ç", "-" and ' ? In the "config.yml", "heroicdeath.items" and "heroicdeath.messages" files ?

    If I define a ":Spider" messages, will the ":Monsters" messages also be used ?

    Thanks for this nice and funny plugin. :)

    EDIT: You can find my custom files (in french) here : http://forums.bukkit.org/threads/heroicdeath-messages-what-are-yours.10302/
     
  26. Offline

    SquallSeeD31

    Spider overrides Monsters. If you have a line for Spiders, and a Spider kills you, it will always use a Spider line instead of a Monster line. If you're killed by a Wolf and you have no Wolf line, it'll use a Monster line.

    Special characters are supported as long as the file is saved properly. Trying to figure out Kartus' problem, but no success thusfar. I just know it works for me and everyone else if saved in ANSI (ISO-8859-1) =(
     
  27. Offline

    Simanova

    Greetins, could you please deactivate the "[WARNING] Permissions not found! All Operations are allowed!" warning? Or make it configureable.

    Salut
     
  28. Offline

    SquallSeeD31

    HeroicDeath doesn't use Permissions... where are you getting this message, and what exactly does it say?
     
  29. Offline

    Simanova

    This warning appears right after HeroicDeath is loaded

     
  30. Offline

    NotoriousPyro

    My heroicdeath.messages if anyone wants it:
    Code:
    #This file contains custom messages for death events.
    #You can specify as many messages as you want (within reason) for each death type.
    #Just be sure each message is on a new line under the appropriate label.
    #When a player dies, a random message from the appropriate label is chosen.
    #Accepted variables:
    # - %d holds the name of the dead player.
    # - %a holds the name of the attacking entity (player or monster) for PVP and Monster deaths.
    # - %i holds the name of the attacking player's current item for PVP deaths.
    #Custom item names may be defined in the 'heroicdeath.items' file.
    :Drown
    %d forgot how to swim
    %d is swimming with the fishes
    :Cactus
    Welcome to the Cactus Hugging Society, %d
    %d poked a cactus, but the cactus poked back
    :Fire
    %d burned to death
    %d spontaneously combusted
    :Explosion
    %d was blown to smithereens
    %d doesn't understand TNT fuses
    %d accidentally the TNT
    :Creeper
    %d tried taming a %a... and failed
    %d was killed by walking TNT
    :Zombie
    %d was ripped apart by a %a
    :PigZombie
    %d was mutilated by a %a
    :Spider
    %d was webbed by a %a
    %d is now the winter food of a %a
    :Skeleton
    A %a punctured %d with thousand arrows
    :Wolf
    %d was mauled by a %a
    There's only so much poking with sticks that a %a will take, %d
    :Fall
    %d fell to their death
    %d tried testing gravity out
    %d turned into a pool of blood and crushed body parts
    :PVP
    %a killed %d wielding %i
    :Void
    Someone should call an admin, %d fell into the void!
    :Lava
    %d wanted to know how hot the lava was
    %d magically transformed into Obsidian!
    %d took a bath in a lake of fire
    That's not tomato juice, %d
    :Other
    %d died from unknown causes
    %d was killed by the server (don't know why though)
    :Suffocation
    %d suffocated
    %d forgot their breath
    :Dispenser
    Did someone set up a trap? Or did %d forget how dispensers work?
    :Lightning
    They say lightning never strikes in the same place twice... It didn't need to for %d
    :Monsters
    %d was killed by an angry %a
    A %a murdered %d with a rusty spoon
     
  31. Offline

    Sphax

    I've just tried it and I still get the following errors :
    Code:
    17:24:07 [GRAVE] Could not load 'plugins\HeroicDeath.jar' in folder 'plugins':
    unacceptable character #FFFD special characters are not allowed
    in "<reader>", position 112
            at org.yaml.snakeyaml.reader.StreamReader.checkPrintable(StreamReader.java:68)
            at org.yaml.snakeyaml.reader.StreamReader.update(StreamReader.java:159)
            at org.yaml.snakeyaml.reader.StreamReader.peek(StreamReader.java:117)
            at org.yaml.snakeyaml.reader.StreamReader.peek(StreamReader.java:106)
            at org.yaml.snakeyaml.scanner.ScannerImpl.scanToNextToken(ScannerImpl.java:964)
            at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.java:237)
            at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:183)
            at org.yaml.snakeyaml.parser.ParserImpl$ParseImplicitDocumentStart.produce(ParserImpl.java:200)
            at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:163)
            at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:148)
            at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:104)
            at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:124)
            at org.yaml.snakeyaml.Yaml.load(Yaml.java:264)
            at org.bukkit.util.config.Configuration.load(Configuration.java:73)
            at org.bukkit.plugin.java.JavaPlugin.initialize(JavaPlugin.java:158)
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:140)
            at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:160)
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:108)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:85)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:217)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:204)
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:144)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:259)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    
    My files can be found here : http://forums.bukkit.org/threads/heroicdeath-messages-what-are-yours.10302/
    For the moment, I've replaced special characters by standard ones.


    EDIT: nvm... I've reopened and resaved the 3 files and it seems to be ok now. :) Thank you.
     

Share This Page