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


    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

    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.

    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!

    • 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):


    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

    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
    # 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:
    #If color entered is inappropriate, HeroicDeath will default to the following values:
    ##message: RED
    ##name: DARK_AQUA
    ##item: GOLD
        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:
    ##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
        data: true
        messages: true
            stamp: true
            format: MM/dd/yyyy HH:mm:ss z
            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.
        only: false
    #Localized monster names:
    ##If you would like to specify custom localization for the mob names, edit the defaults below
        ghast: Ghast
        slime: Slime
        monster: Monster
        zombie: Zombie
        pigzombie: PigZombie
        spider: Spider
        creeper: Creeper
        skeleton: Skeleton
        wolf: Wolf
        unknown: Unknown
        giant: Giant
    ##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.
        useDisplayName: false
        serverBroadcast: true
            quiet: [peacefulworld, noobworld]
            loud: [pvpworld, nether]

    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:

    %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
    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"

    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 -

    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. Offline


    That message would appear to me to be caused by a plugin that is forcibly loading HeroicDeath. HeroicDeath prints its enable message at the very end of onEnable, so even if I did link with Permissions (I don't), that wouldn't make sense.

    Are you running any plugin that uses the output of HeroicDeath, such as to send death messages to IRC?
  3. Offline


    Iam using:

  4. Offline


    I'm really sorry, I don't recognize any of those plugins to interact with HeroicDeath; the message is probably just coming from whatever the next plugin in the list is. So look for the next "enabled" message after HeroicDeath, and that's probably the plugin providing that message.

    What I can unequivocally promise you is that HeroicDeath does not send that message under any circumstances.
  5. Offline


    Iam sorry, i think i wasted your time - anyway - thanks for reply
  6. Offline


    Epic plugin, thanks!
  7. Offline


    I think this has been requested before, but I'd like to also ask for it. Please add the ability to include the location where you died, x,y,z in the message. I know this will help my players find where they died. Maybe include it as a variable in the message like "$player was killed by a spider at $loc"
  8. Offline


    I use DeathSigns.. that way they have a visual marker.
  9. Offline


    good plugin! Can you set in config file, the message for each type of mob when you are killed by them?
  10. Offline


    Yes you can, look at the heroicdeath.messages file in the plugin.
  11. Offline


    %d was killed by a %a
    and that's all. this message it's for all types of mobs (without creeper)
  12. Offline


    In "config.yml", you have the name of all the supported mobs :
        ghast: Ghast
        slime: Slime
        monster: Monster
        zombie: Zombie
        pigzombie: PigZombie
        spider: Spider
        creeper: Creeper
        skeleton: Skeleton
        unknown: Unknown
        giant: Giant
        wolf: Wolf
    If you want some specific messages for spider for example, you set that in the heroicdeath.messages like that:
    %d was killed by the 8 legs of an ugly spider ...
  13. Offline


    For some reason a server I play on generates generic messages for Zombie, Skeleton and Wolf kills. I'm absolutely certain there's custom messages for those, since I added them myself.

    What could be causing this?
  14. Offline


    For those who're wondering, these are the messages he's talking about.

    #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.
    %d drowned
    %d is swimming with the fishes
    %d took a long walk off a short pier
    HAHAHA! STUPID %d! You're not a fish you dummy
    %d just got a lungfull of water.
    %d decided to go outside for a swim. And stayed out.
    Ocean: 1.  %d: 0.
    %d forgot he can't breathe underwater
    %d thought he was whale. But even whales need air.
    %d died to a cactus
    %d poked a cactus, but the cactus poked back
    %d hugged a cactus! Bad plan.
    %d looked more like a pincussion after running into that cactus
    %d just turned into a human porcupine. A dead one that is.
    %d burned to death
    %d forgot how to stop, drop and roll
    Today's special: %d, extra crispy
    %d didn't start the fire, but couldn't stop it either
    %d was baked
    %d is feeling hot hot hot
    %d suffered a bad case of sunburn
    %d just cooked! Well done %d. Or should that be, %d, well-done?
    %d apparently has an explosive personality
    %d exploded
    %d went out with a bang
    May %d rest in pieces, many pieces.
    %d just lost a game of Minesweeper.
    %d was creeper bombed
    %d hugged a creeper
    %d just learned that SSSSSssss is for %a
    What was green, silent and deadly? The %a that just blew up %d
    Quick %d! Dodge that Cr-  Ok never mind.
    %d can start picking up the pieces again. Of his own body.
    %a's eight legs were better then %d's two.
    %d just met the not-so-friendly SpiderMan. Without the man.
    %d was tangled up in a %a's web.
    %as. Even worse then headcrabs, right %d?
    %d just took an eight-legged beating.
    %d just developed a very bad case of Arachnophobia
    %d just got sniped.
    %d just got boned by a %a
    %d got his bones rattled by a %a
    Awesome! %d caught an arrow! With his face.
    %d tried to dodge arrows Matrix-style. And failed.
    %a is not William Tell. %d just found that out the hard way.
    %a just opened the %d hunting season
    %d got their face ripped off by a %a. Well, it's an improvement.
    %d just got their brains eaten.  Not like anyone would notice, but still.
    Well that's a no-brainer. %d just got killed by a zombie
    Oh come on %d. How did you NOT see that %a coming?
    It's slow, it requires your brain, and it just killed %d. Good for you %a.
    %d just got zombified.
    %d must have played with too many pigs before punching that wolf.
    %d should know never to wake sleeping dogs. Same goes for friendly wolves.
    Looks like a dog, behaves like a dog, but rips your face off when its mad. Thats what %d just found out.
    Well, %d just got killed by a wolf. I hope he learned that "petting"  isn't the same as "punching".
    %d fell to their death
    %d took a leap of faith
    Dear %d, there is this thing called Gravity. Don't try to abuse it, you won't win.
    %d just took a dive off the high diving board. No water.
    %d missed the water on his way down
    Famous last words: %d: I bet I can make it across that canyon.
    %d just learned that even soft grass can hurt like concrete.
    %d cratered
    %d just left a human size crater in the countryside.
    %d was just brutally murdered with a(n) %i
    %d fell into the Gap
    %d was killed by an angry %a
    %d pissed off the wrong %a
    %d was killed by lava
    %d became obsidian
    %d took a bath in a lake of fire
    %d went swimming in the wrong kind of liquid
    Molten rock is hot, isn't it %d.
    %d just drowned in the hot tub. The very hot tub.
    %d died from unknown causes
    %d was killed by Herobrine
    Wait what. How did %d just die...
    %d suffocated
    %d dug his own grave
    %d just caved in
    %d put himself six feet under
    %d did not need a dispenser there.
    %d got shot by a dispenser.
    %d got electrocuted.
    %d has an electrifying personality.
    %d made a suitable ground.
    As you can see, there are messages defined for zombies, wolves, etc. Yet they don't seem to work.
    Does anyone have any idea why that might be?
  15. Offline


    I edited the messages files so only certain deaths are shown. However, deaths by mobs are still showing...
    Here's what my file looks like:

    %d died to a cactus
    %d burned to death
    %d fell to their death
    %a killed %d
    %d took a bath in a lake of fire
    %d died from unknown causes
    %d got electrocuted.
  16. Offline


    What version of HeroicDeath is this, and what version of CraftBukkit?

    HeroicDeath is designed to report all types of death no matter what; the messages file allows you to specify custom messages that will override the default messages. I do not currently support a feature to disable announcement of certain death types.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: May 8, 2016
  17. Offline


    This has since been fixed by restarting the server again, rather than reloading it.
  18. Does anyone have some good PHP code for parsing the death_data file? I have spent several hours on it now, hoping to find a way to automate the Deaths page on my website (in signature). But I cannot even get the PHP code to read the file, let alone format it the way I want it :(
  19. Offline


    Just spent the last 2 hours coding something for you :) Needs testing though. Coding PHP after a while is amazingly much fun.
    Reads the death_data.log and outputs a html page with a table just like the one you have on your page. Doesn't store the data anywhere atm but could easily make it store into a file, I think. Might not be able to resist to try anyway.

    I'm also missing a Cause of Death id for lightning though, to make it look nice as a nemesis killer. (As if that'd ever happen though :p)

    Can I add you on MSN to test before I publish it to the thread? :)

    Edit:// Also might need to figure out a way to include players with no deaths yet?
  20. Amazing! :D
    Yeah you are more than welcome to add me, my email address is on my profile page.
    When a particularly contemptible admin (me!) is online, lightning strikes are common. I particularly love that even people cave diving for diamonds can be struck at any moment!
  21. Offline


    Feature Request

    It would be very useful if you can make so the death messages are "local." That is to have an option that you can specify how far you want the message to go. If you have it set to 50 and Bob kills Steve, only players within 50 block radius will get the message.

    This would greatly cut down on spam in the chat from this plug in, and I think it would be an appreciated feature since if you are half way across the world, you probably don't care who killed who.

    This would also be appreciated by those who use the War plug in. Once we started using the War plug in I had to disable this one, since there was a death message every 3-10 seconds depending on what War level the players are playing at.

    Also, instead of the radius it would be nice if you can pick what world you want death messages displayed in. This would be great for the servers with multi worlds. This way if Bob kills Steve in world A, everyone who is in world B will not see the message. Of course if you would do support for how far the message travels this would be supported by default :)

    Thank you for your time reading this :)
    GmK and Pisi-Deff like this.
  22. Offline


    PHP death_data.log parser into a html table. Source code attached.
    Still missing the lightning strike cause of death id though.

    Result + some awesome css formatting:

    Any feature requests, feel free to ask. Do whatever you want with it. :)

    Attached Files:

    AS1LV3RN1NJA and GmK like this.
  23. Offline



    I want to second what @imaxorz requested.

    As a basic version, maybe we can get multiworld support? Meaning: We can select the worlds on which the plugin broadcasts. I have a PvP World and a No-PvP World, so I dont want players on no-pvp to be spammed with the messages from the other world.

    Would be fantastic!
  24. Offline


    Can you please keep one name for your files you upload to get CraftBukkitUpToDate support?
  25. Offline

    Codex Arcanum

    Could you add an option so that the death message can broadcast the death co-ordinates of the player? That way that player can rush back to their place of death because they know where it is. Thanks for making this plugin, regardless if you take my random request!
  26. Offline


  27. Offline


    Works flawlessly for me :)
  28. Offline


    cool. :)
  29. Offline


    I love this plugin, it's great. It's one of the only plugins I use actually, I don't like too many plugins installed. I also use IRCTransport though. The death messages, of course, don't get sent to the IRC channel, and I was thinking it would be great if they actually were sent, as /me emote commands. This way people who are in the IRC channel but not playing, can still see the messages. Possible?

    EDIT: I just realized though that for /me to work correctly, all messages would need to begin with %d. This is true for all except "%a killed %d wielding %i", which could easily be re-written to "%d was killed by %a wielding %i"
  30. Offline


    hmmm ... any reason this wouldnt broadcast PVP deaths?? im using 819 and war plugin ...
  31. Offline


    Plugin works perfectly on 818! :D
    Weird thing is sometimes it likes to double post the death message in the chat.
    And also with Muddermilk plugin when you die from poision it says you were killled by herobrine. LoL!

    Awesome plugin tho useing it on my server.

Share This Page