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

    Can you post the stacktrace and which CraftBukkit build you're running?
     
  3. Offline

    Vaupell

    haha works on 328,, and fun fun ;D
     
  4. Offline

    Phaedrus

    Good work. This plugin was a lot of fun in hmod
     
  5. Offline

    MadJawa

    I have a little problem with accentued characters, they don't show up. Is it normal?
     
  6. Offline

    SquallSeeD31

    Could you give me an example of a character you're trying to use? HeroicDeath does parse its message file in ISO-8859-1 (Latin 1).
     
  7. Offline

    MadJawa

    Oh OK, my text editor uses UTF8 by default. It works now. (I was trying to use accents like é, è, à, ...)
     
  8. Offline

    Direct1221

    Craftbukkit Build #349
    HeroicDeath 1.3.1.130

    Error:
    Code:
    Feb 19, 2011 9:52:39 PM org.bukkit.craftbukkit.CraftServer loadPlugins
    SEVERE: ENTITY_DAMAGEDBY_PROJECTILE (Is it up to date?)
    java.lang.NoSuchFieldError: ENTITY_DAMAGEDBY_PROJECTILE
            at com.bukkit.squallseed31.heroicdeath.HeroicDeath.onEnable(HeroicDeath.java:58)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:135)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:415)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:175)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:74)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:55)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:171)
            at net.minecraft.server.MinecraftServer.c(MinecraftServer.java:158)
            at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:110)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:209)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)
    
     
  9. Offline

    SquallSeeD31

    Thank you for the detailed error report. Please see: http://forums.bukkit.org/threads/oops-i-broke-your-plugins.599/#post-67424

    They've merged all the damage events today, which would have been awesome from the start, but since I had to break out the code into four separate events to begin with, I need to go back and merge them into one. This change is really logical and I love them for it, but it'll take me a little bit to get you a new build that plays nice with the new and old damage processing.

    So to everyone else: HeroicDeath 1.3.1 now only works with CraftBukkit 348 and below. The break occurs at 349.
     
  10. Offline

    Direct1221

    Ok. No worries, I am just happy I could help by notifying you of this.

    Hope to see this as soon as you post this. I love your plugin. :)

    Great work :)
     
  11. Offline

    SquallSeeD31

    Fixed in 1.4.0 - SERVER ADMINS: Do NOT download 1.4.0 if you're running CraftBukkit 348 or below!
    EDIT: I realize my Dropbox is running a little slow, so if the 1.4.0 link doesn't work right now, try again in a few minutes.
     
  12. Offline

    Direct1221

  13. Offline

    cuco

    Hi

    I am using CraftBukkit #361 and Heroic Death 1.4 and I get the following:

    Code:
    2011-02-20 16:15:20 [INFO] Starting minecraft server version Beta 1.2_01
    2011-02-20 16:15:20 [INFO] Loading properties
    2011-02-20 16:15:20 [INFO] Starting Minecraft server on *:25565
    2011-02-20 16:15:20 [WARNING] **** SERVER IS RUNNING IN OFFLINE/INSECURE MODE!
    2011-02-20 16:15:20 [WARNING] The server will make no attempt to authenticate usernames. Beware.
    2011-02-20 16:15:20 [WARNING] While this makes the game possible to play without internet access, it also opens up the ability for hackers to connect with any username they choose.
    2011-02-20 16:15:20 [WARNING] To change this, set "online-mode" to "true" in the server.settings file.
    2011-02-20 16:15:21 [INFO] This server is running Craftbukkit version git-Bukkit-"51dd641"-b{$bamboo.buildNumber}bmb (MC: 1.2_01)
    2011-02-20 16:15:21 [INFO] Preparing level "world"
    2011-02-20 16:15:21 [INFO] Preparing start region
    2011-02-20 16:15:22 [INFO] Preparing spawn area: 8%
    2011-02-20 16:15:23 [INFO] Preparing spawn area: 32%
    2011-02-20 16:15:24 [INFO] Preparing spawn area: 56%
    2011-02-20 16:15:25 [INFO] Preparing spawn area: 73%
    2011-02-20 16:15:26 [INFO] Preparing spawn area: 93%
    2011-02-20 16:15:26 [WARNING] Using the stupidly long constructor com.afforess.minecartmaniaadmincontrols.MinecartManiaAdminControls(PluginLoader, Server, PluginDescriptionFile, File, File, ClassLoader) is no longer recommended. Go nag the plugin author of Minecart Mania Admin Controls to remove it! (Nothing is broken, we just like to keep code clean.)
    2011-02-20 16:15:26 [INFO] Hint! It's probably someone called 'Afforess'
    2011-02-20 16:15:26 [WARNING] Using the stupidly long constructor com.afforess.minecartmaniacore.MinecartManiaCore(PluginLoader, Server, PluginDescriptionFile, File, File, ClassLoader) is no longer recommended. Go nag the plugin author of Minecart Mania Core to remove it! (Nothing is broken, we just like to keep code clean.)
    2011-02-20 16:15:26 [INFO] Hint! It's probably someone called 'Afforess'
    2011-02-20 16:15:26 [WARNING] Using the stupidly long constructor com.afforess.minecartmaniaautocart.MinecartManiaAutocart(PluginLoader, Server, PluginDescriptionFile, File, File, ClassLoader) is no longer recommended. Go nag the plugin author of Minecart Mania Autocart to remove it! (Nothing is broken, we just like to keep code clean.)
    2011-02-20 16:15:26 [INFO] Hint! It's probably someone called 'Afforess'
    2011-02-20 16:15:26 [WARNING] Using the stupidly long constructor com.afforess.minecartmaniastation.MinecartManiaStation(PluginLoader, Server, PluginDescriptionFile, File, File, ClassLoader) is no longer recommended. Go nag the plugin author of Minecart Mania Station to remove it! (Nothing is broken, we just like to keep code clean.)
    2011-02-20 16:15:26 [INFO] Hint! It's probably someone called 'Afforess'
    2011-02-20 16:15:26 [WARNING] Using the stupidly long constructor com.afforess.minecartmaniasigncommands.MinecartManiaSignCommands(PluginLoader, Server, PluginDescriptionFile, File, File, ClassLoader) is no longer recommended. Go nag the plugin author of Minecart Mania Sign Commands to remove it! (Nothing is broken, we just like to keep code clean.)
    2011-02-20 16:15:26 [INFO] Hint! It's probably someone called 'Afforess'
    2011-02-20 16:15:26 [WARNING] Using the stupidly long constructor org.dynmap.DynmapPlugin(PluginLoader, Server, PluginDescriptionFile, File, File, ClassLoader) is no longer recommended. Go nag the plugin author of dynmap to remove it! (Nothing is broken, we just like to keep code clean.)
    2011-02-20 16:15:26 [WARNING] Using the stupidly long constructor com.echo28.bukkit.findme.FindMe(PluginLoader, Server, PluginDescriptionFile, File, File, ClassLoader) is no longer recommended. Go nag the plugin author of FindMe to remove it! (Nothing is broken, we just like to keep code clean.)
    2011-02-20 16:15:26 [WARNING] Using the stupidly long constructor com.afforess.minecartmaniachestcontrol.MinecartManiaChestControl(PluginLoader, Server, PluginDescriptionFile, File, File, ClassLoader) is no longer recommended. Go nag the plugin author of Minecart Mania Chest Control to remove it! (Nothing is broken, we just like to keep code clean.)
    2011-02-20 16:15:26 [INFO] Hint! It's probably someone called 'Afforess'
    2011-02-20 16:15:26 [WARNING] Using the stupidly long constructor com.herocraftonline.squallseed31.heroicdeath.HeroicDeath(PluginLoader, Server, PluginDescriptionFile, File, File, ClassLoader) is no longer recommended. Go nag the plugin author of HeroicDeath to remove it! (Nothing is broken, we just like to keep code clean.)
    2011-02-20 16:15:26 [WARNING] Using the stupidly long constructor com.compilednl.minecartmaniaspawner.MinecartManiaSpawner(PluginLoader, Server, PluginDescriptionFile, File, File, ClassLoader) is no longer recommended. Go nag the plugin author of Minecart Mania Spawner to remove it! (Nothing is broken, we just like to keep code clean.)
    2011-02-20 16:15:26 [WARNING] Using the stupidly long constructor com.recanu.DeathChest.DeathChest(PluginLoader, Server, PluginDescriptionFile, File, File, ClassLoader) is no longer recommended. Go nag the plugin author of DeathChest to remove it! (Nothing is broken, we just like to keep code clean.)
    2011-02-20 16:15:26 [INFO] Hint! It's probably someone called 'recanu'
    2011-02-20 16:15:27 [WARNING] Using the stupidly long constructor com.bukkit.seiken.interest.Interest(PluginLoader, Server, PluginDescriptionFile, File, File, ClassLoader) is no longer recommended. Go nag the plugin author of Interest to remove it! (Nothing is broken, we just like to keep code clean.)
    2011-02-20 16:15:27 [INFO] ScrapBukkit version 0.2.1 is enabled!
    2011-02-20 16:15:27 [INFO] Minecart Mania Admin Controls version 0.21 is enabled!
    2011-02-20 16:15:27 [INFO] Minecart Mania Core version 0.93 is enabled!
    2011-02-20 16:15:27 [INFO] Minecart Mania Autocart version 0.6 is enabled!
    2011-02-20 16:15:27 [INFO] Minecart Mania Station version 0.31 is enabled!
    2011-02-20 16:15:27 [INFO] Minecart Mania Sign Commands version 0.23 is enabled!
    2011-02-20 16:15:27 [INFO] Loading map 'org.dynmap.kzedmap.KzedMap'...
    2011-02-20 16:15:27 [INFO] Loading renderer 'org.dynmap.kzedmap.DefaultTileRenderer'...
    2011-02-20 16:15:27 [INFO] Loading renderer 'org.dynmap.kzedmap.CaveTileRenderer'...
    2011-02-20 16:15:27 [INFO] Set minimum priority for worker thread
    2011-02-20 16:15:27 [INFO] Dynmap WebServer started on null:8123
    2011-02-20 16:15:27 [INFO] FindMe 1.2.3 loaded.
    2011-02-20 16:15:27 [INFO] Minecart Mania Chest Control version 0.23 is enabled!
    2011-02-20 16:15:27 [INFO] Map renderer has started.
    [B]2011-02-20 16:15:27 [INFO] [HeroicDeath] 1.4.0.133 enabled.[/B]
    2011-02-20 16:15:27 [INFO] Minecart Mania Spawner version 0.7 loaded.
    2011-02-20 16:15:27 [INFO] [DeathChest] version [1.3b] loaded.
    2011-02-20 16:15:27 [INFO] [DeathChest] Permission Plugin not found. Everyone has got permissions now.
    2011-02-20 16:15:27 [INFO] Loaded expiration time: 0
    [B]2011-02-20 16:15:27 [SEVERE] 20.02.2011 16:15:27 org.bukkit.craftbukkit.CraftServer loadPlugins[/B]
    [B]SCHWERWIEGEND: ENTITY_DAMAGEDBY_ENTITY (Is it up to date?)[/B]
    [B]java.lang.NoSuchFieldError: ENTITY_DAMAGEDBY_ENTITY[/B]
    [B]    at com.recanu.DeathChest.DeathChest.registerEvents(DeathChest.java:137)[/B]
    [B]    at com.recanu.DeathChest.DeathChest.onEnable(DeathChest.java:101)[/B]
    [B]    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:140)[/B]
    [B]    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:426)[/B]
    [B]    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:187)[/B]
    [B]    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:74)[/B]
    [B]    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:55)[/B]
    [B]    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:179)[/B]
    [B]    at net.minecraft.server.MinecraftServer.c(MinecraftServer.java:166)[/B]
    [B]    at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:118)[/B]
    [B]    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:217)[/B]
    [B]    at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)[/B]
    
    2011-02-20 16:15:27 [INFO] Done! For help, type "help" or "?"
     
  14. Offline

    NoFear13

    This is a failure of DeathChest not Heroic Death
     
  15. Offline

    cuco

    oops [​IMG] sry!
     
  16. when will this be updated to 329+?
     
  17. Offline

    SquallSeeD31

    1.3.1 should work up to 348, 1.4.0 should work for 349+

    I understand that the full-form plugin constructor is no longer used, and I'll release a bugfix for that shortly, but it shouldn't affect performance.
     
  18. sorry i didn't see 4.0 :D
     
  19. Offline

    NoSDuDe

    Hi,
    Just posting to tell you that inthe last CB version :
    This server is running Craftbukkit version git-Bukkit-0.0.0-409-gcb2bced (MC: 1.2_01)

    Only the messages from Default category are displayed (I've only tried with cacti and Zombie)
    I've got no specific error log/exceptions in the server console.

    Anyway thanks for this fun plugin :)
     
  20. Offline

    SquallSeeD31

    Are you using HeroicDeath 1.4.0?
    If you haven't upgraded HeroicDeath yet, please do, as CB 349+ breaks the damage events that were used previously.
     
  21. Offline

    Vaupell

    using build 402, getting same error :(
     
  22. Offline

    NoSDuDe

    Thx for your answer,
    I'm still investigating.

    I use this version :
    2011-02-21 01:26:42 [INFO] [HeroicDeath] 1.4.0.133 enabled.
     
  23. Offline

    SquallSeeD31

    Okay, thanks for the reports guys, I've heard a lot of stuff broke with 400+, and I haven't had time to specifically investigate my own plugins yet. I will do my best to research the changes and figure out what went wrong.
    --- merged: Feb 21, 2011 2:34 AM ---
    Alright, it's been fixed in v1.4.1 and tested against 402 successfully. Please post stacktraces/screenshots/details if you experience any trouble going forward.
     
  24. Offline

    Vaupell

    Currently build 405

    Works like a charm not ewen getting the constuction error like other "supposedly" fixed plugins..

    good job.. Thumbs up :D
    And thank you
     
  25. Offline

    Simanova

    Using Craftbukkit recomended version 53
    http://ci.bukkit.org/job/dev-CraftBukkit/53/
     
  26. Offline

    oOunrealOo

    can we make multipull messages so they are picked randomly
     
  27. It already allows you to do that.
     
  28. Offline

    SquallSeeD31

  29. Offline

    Simanova

    using HeroicDeath 1.4.0 - so its all fine - a update will solve this
     
  30. Offline

    Dutchy

  31. Offline

    SquallSeeD31

Share This Page