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

    SquallSeeD31

    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

    Simanova

    Iam using:

    [​IMG]
     
  4. Offline

    SquallSeeD31

    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

    Simanova

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

    Bigwig222

    Epic plugin, thanks!
     
  7. Offline

    mattekure

    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

    valdark

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

    Leemur

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

    Sphax

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

    Leemur

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

    Sphax

    In "config.yml", you have the name of all the supported mobs :
    Code:
        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:
    Code:
    :Spider
    %d was killed by the 8 legs of an ugly spider ...
     
  13. Offline

    Braegh

    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

    SirPali

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

    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 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.
    :Cactus
    %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.
    :Fire
    %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?
    :Explosion
    %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.
    :Creeper
    %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.
    :Spider
    %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
    :Skeleton
    %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
    :Zombie
    %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.
    :Wolf
    %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".
    :Fall
    %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.
    :PVP
    %d was just brutally murdered with a(n) %i
    :Void
    %d fell into the Gap
    :Monsters
    %d was killed by an angry %a
    %d pissed off the wrong %a
    :Lava
    %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.
    :Other
    %d died from unknown causes
    %d was killed by Herobrine
    Wait what. How did %d just die...
    :Suffocation
    %d suffocated
    %d dug his own grave
    %d just caved in
    %d put himself six feet under
    :Dispenser
    %d did not need a dispenser there.
    %d got shot by a dispenser.
    :Lightning
    %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

    Pythros

    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:

    Code:
    :Cactus
    %d died to a cactus
    :Fire
    %d burned to death
    :Fall
    %d fell to their death
    :PVP
    %a killed %d
    :Lava
    %d took a bath in a lake of fire
    :Other
    %d died from unknown causes
    :Lightning
    %d got electrocuted.
    
     
  16. Offline

    SquallSeeD31

    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

    Braegh

    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

    Pisi-Deff

    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

    imaxorz

    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

    Pisi-Deff

    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: http://smpserver.dyndns.org/deaths.php

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

    Attached Files:

    AS1LV3RN1NJA and GmK like this.
  23. Offline

    GmK

    @SquallSeeD31

    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

    Kiim

    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

    RTRD

  27. Offline

    Pisi-Deff

    Works flawlessly for me :)
     
  28. Offline

    RTRD

    cool. :)
     
  29. Offline

    doughsay

    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

    NateBody

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

    iFreZzAx

    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