[TP/CHAT] DeathTpPlus v1.86 - DeathNotify + DeathTP + Streaks + DeathLog [740]

Discussion in 'Inactive/Unsupported Plugins' started by lonelydime, Jan 31, 2011.

  1. Offline



    Version: v1.86


    Works with Permissions 2.5+ or GroupManager!

    • Use /deathtp to teleport back to where you died.
    • Optional: Charge a player an item to teleport (must be in the player's hand).
    • Optional iConomy support.
    • Customizable messages for every kind of death.
    • Supports multiple messages per kind of death, chosen randomly when someone dies.
    • Custom colors per message.
    • PvP messages that show the attacker as well as what they killed with. Item names have been cleaned up to look pretty.
    • Optional: Show tombstones where someone died and how they died.
    • Optional CraftIRC support
    • Show a custom message when someone has killed a custom set of people or died a custom amount of times.
    • Custom colors per streak message.
    • /deaths - shows the total number of times you've died.
    • /deaths <username> - shows how many times <username> has died.
    • /deaths <username> <method> - shows how many times <username> has died by fall, lava, creeper, etc. <method> can also be a user name.
    • /kills - shows the total number of times you've killed someone (another player).
    • /kills <username> - shows how many times <username> has killed anyone.
    • /kills <username> <username2> - shows how many times<username> has killed <username2>.
    Don't want one of the features? No worries! Just disable it in the config file and it'll be like that feature isn't in the plugin at all! The file IOs aren't called and neither are the methods used for those features. Worried about performance? Don't be!

    Quick Links:
    • Upload the DeathTpPlus.jar file into your plugins directory.
    • Upload the config.yml file to plugins/DeathTpPlus/
    • If you do not upload config.yml, the server will create it for you, but you must populate it.

    deathtpplus.deathtp - this is for the /deathtp command
    deathtpplus.streak - this is for the /streak command
    deathtpplus.deaths - this is for the /deaths command
    deathtpplus.kills - this is for the /kills command
    • Implement banning on death for a specific amount of time.
    • Add option for admin only destruction of RIP signs.
    • Waiting for bukkit to add owner methods to wolves to add wolves to pvp messages.
    • Make death signs show on the next available air block.
    Version 1.86
    • Added support for lightning
    • Added support for iConomy 5
    Version 1.85
    • Fixed the nagging warning so iConomy works properly again.
    • Added support for wolves.
    Show Spoiler

    Version 1.84
    • Replaced depreciated methods to work with CB602.
    Version 1.83
    • Allow the config.yml to use & instead of §
    Version 1.82
    • Added VOID type damage.
    Version 1.81
    • Removed debug code.
    • Changed teleport to find the next highest AIR block for save deathtp'ing
    • Removed /suicide since it's worthless.
    Version 1.8
    • Fixed slime death detection.
    • Added deathlog.txt, keeps a record of how many times a player dies or kills and how they died/who they killed. (Can be turned off or on in the config)
    • Added a message for iConomy users to let the user know how much deathtp just cost them.
    • Fixed turning deathnotify off didn't really turn it off.
    Version 1.77
    • CraftIRC support (tested against beta 2.0)
    Version 1.76
    • iConomy support (tested against iConomy 4.4)
    Version 1.75
    • Fixed the suffocation handle.
    Version 1.74
    • Converted to onCommand from playerCommand.
    Version 1.73
    • Added optional support for GroupManager
    Version 1.72
    • Updated the damage hook to work with newer versions of bukkit.
    • Got rid of the stupidly long constructor.
    Version 1.71
    • Removed reference to com.bukkit* and replaced with com.lonelydime*
    • Added additional death notify message for bare fists only (in response to the reddit post), "a bare fist" didn't make much sense.
    Version 1.7
    • Fixed renaming of file creating/looking in wrong folder. (Note, you still have to populate config.yml)
    • Added tombstone signs with death messages.
    Version 1.6
    • Added permissions support
    • Plugin initialization now prints in server.log
    Version 1.5
    • Removed properties file in favor of config.yml.
    • Removed the need for killstreak.txt, deathstreak.txt and deathtpplus.properties.
    • Removed Properties.java from the package.
    • Numerous performance enhancements.
    • Added support for multiple messages.
    • Added support for custom colors per message.
    • Changed item names to prettier names for PvP kills.
    • Disabled file IO if the plugin feature is disabled in the config file (performance).
    Version 1.4
    • Fixed instances of Ghasts, Pig Zombies and Suffocate triggers not firing.
    • Added /streak and /streak <player> to check killing streaks.
    • Added an optional charge for teleporting (item has to be in user's hand to teleport. The item code is set up in the properties file).
    Version 1.3
    • Added Killing/Death sprees.
    • Converted large amounts of strings to hashmaps (performance)
    • Rearranged file loads to /reload will reload the config files.
    Version 1.2
    • Added ability to turn off /deathtp command or deathnotify messages via properties file.
    Version 1.1
    • Added properties file to customize the text displayed when someone dies.
    • Added types of death instead of just showing someone died.
    Version 1.0
    • Public Release

    Example config.yml (Borrowed from @Etalyx)
    Show Spoiler

    # ----- Standard plugin features
    # Show the death messages on the server
    show-deathnotify: 'true'

    # Allow players to access the deathtp command
    allow-deathtp: 'true'

    # Show kill or death streaks read in from killstreak.txt and deathstreak.txt
    show-streaks: 'true'

    # Item ID of the item you must have in your hand to teleport. Will remove 1 of these when the command is given. Leave 0 for free teleports.
    charge-item: 0

    # Show sign tombstones upon death
    show-sign: 'false'

    # iConomy
    deathtp-cost: 10

    # CraftIRC
    deathtp-tag: 'all'

    allow-deathlog: 'true'

    # ----- Death Messages

    # Must contain at least 1 line. If there are more, it will appear randomly when a person dies.
    # %n for player who died
    # %a name of player who attacked in pvp deaths
    # %i for item a player was using to kill someone else
    # Colors
    # §0 Black
    # §1 Navy
    # §2 Green
    # §3 Blue
    # §4 Red
    # §5 Purple
    # §6 Gold
    # §7 LightGray
    # §8 Gray
    # §9 DarkPurple
    # §a LightGreen
    # §b LightBlue
    # §c Rose
    # §d LightPurple
    # §e Yellow
    # §f White

    - '§4%n tripped and fell...down a cliff.'
    - '§4%n leapt before looking.'
    - '§4%n forgot to bring a parachute!'
    - '§4%n learned to fly...briefly...'
    - '§4%n felt the full effect of gravity.'
    - '§4%n just experienced physics in action.'
    - '§4%n fell to his death.'
    - '§4%n forgot to look out below!'
    - '§4%n got a little too close to the edge!'
    - '§4%n, gravity is calling your name!'
    - '§4%n faceplanted into the ground!'
    - '§4%n yells, "Geronimo!"....*thud*'
    - '§4What goes up must come down, right %n?'

    - '§4%n has drowned.'
    - '§4%n has become one with the ocean!'
    - '§4%n sunk to the bottom of the ocean.'
    - '§4%n went diving but forgot the diving gear!'
    - '§4%n needs swimming lessons.'
    - '§4%n''s lungs have been replaced with H20.'
    - '§4%n forgot to come up for air!'
    - '§4%n is swimming with the fishes!'
    - '§4%n had a surfing accident!'
    - '§4%n tried to walk on water.'
    - '§4%n set a record for holding breath underwater.'

    - '§4%n burned to death.'
    - '§4%n has been set on fire!'
    - '§4%n is toast! Literally...'
    - '§4%n just got barbequed!'
    - '§4%n forgot to stop, drop, and roll!'
    - '§4%n is extra-crispy!'
    - '§4%n spontaneously combusted!'
    - '§4%n put his hands in the toaster!'
    - '§4%n just got burned!'

    - '§4%n burned to death.'
    - '§4%n has been set on fire!'
    - '§4%n is toast! Literally...'
    - '§4%n just got barbequed!'
    - '§4%n forgot to stop, drop, and roll!'
    - '§4%n likes it extra-crispy!'
    - '§4%n spontaneously combusted!'
    - '§4%n put his hands in the toaster!'
    - '§4%n just got burned!'

    - '§4%n became obsidian.'
    - '§4%n was caught in an active volanic eruption!'
    - '§4%n tried to swim in a pool of lava.'
    - '§4%n was killed by a lava eruption!'
    - '§4%n was forged into obsidian by molten lava.'
    - '§4%n took a dip in the wrong kind of pool!'
    - '§4%n found out how to encase himself in carbonite.'
    - '§4%n, the floor is lava! The floor is lava!'

    - '§4%n was creeper bombed!'
    - '§4A creeper exploded on %n!'
    - '§4A creeper snuck up on %n!'
    - '§4A creeper tried to make love with %n...mmm.'
    - '§4%n just got the KiSSssss of death!'
    - '§4%n tried to hug a creeper!'
    - '§4%n is frowning like a creeper now!'

    - '§4A skeleton shot %n to death!'
    - '§4A%n was on the wrong end of the bow. '
    - '§4A%n has a skeleton in the closet...'
    - '§4%n, strafe the arrows! Strafe the arrows!'
    - '§4A skeleton just got a headshot on %n!'

    - '§4%n is all webbed up.'
    - '§4%n got trampled by arachnids!'
    - '§4%n got jumped by a spidah!'
    - '§4Spiders just climbed all over %n!'
    - '§4%n forgot spiders could climb!'

    - '§4%n was punched to death by zombies!'
    - '§4%n was bitten by a zombie!'
    - '§4%n fell to the hunger of the horde!'
    - '§4%n Hasn''t played enough L4D2!'
    - '§4%n couldn''t run faster than the zombie!'

    - '§4%a killed %n using a(n) %i!'
    - '§4%a slays %n with a %i!'
    - '§4%a hunts %n down with a %i!'
    - '§4%n was killed by a %i wielding %a!'
    - '§4%a leaves %n a bloody mess!'
    - '§4%a uses a %i to end %n''s life!'
    - '§4%n collapses due to %i attacks from %a!'
    - '§4%n is now a bloody mess thanks to %a''s %i!'
    - '§4%a beats %n with a %i!'
    - '§4%n was killed by %a''s %i attack!'
    - '§4%a defeats %n with a %i attack!'
    - '§4%a raises a %i and puts and end to %n''s life!'
    - '§4%a took out %n with a %i!'
    - '§4%n was victimised by %a''s %i!'
    - '§4%n was eliminated by %a''s %i!'
    - '§4%a executes %n with a %i!'
    - '§4%a finishes %n with a %i!'
    - '§4%a''s %i has claimed %n as another victim!'
    - '§4%n lost a savage duel to %a!'
    - '§4%a has beaten %n to a pulp!'
    - '§4%a pwns %n in a vicious duel!'
    - '§4Score %a 1 - %n 0!'
    - '§4%a has defeated %n in battle!'
    - '§4%n has been slain by %a!'
    - '§4%a emerges victorious in a duel with %n!'
    - '§4%n has been pwned by %a!'
    - '§4%n was killed by %a!'
    - '§4%n was dominated by %a!'
    - '§4%n was fragged by %a!'
    - '§4%n needs more practice and was killed by %a!'
    - '§4%n was beheaded by %a!'

    - '§4%a pummeled %n to death'
    - '§4%a crusted %n with their bare hands'

    - '§4Careful %n, TNT goes boom!'
    - '§4%n was last seen playing with dynamite.'
    - '§4%n exploded into a million pieces!'
    - '§4%n cut the wrong wire!'
    - '§4%n has left his (bloody) mark on the world.'
    - '§4%n was attempting to exterminate gophers with dynamite!'
    - '§4%n was playing landmine hopscotch!'
    - '§4%n stuck his head in a microwave!'

    - '§4%n got a little too close to a cactus!'
    - '§4%n tried to hug a cactus!'
    - '§4%n needs to be more careful around cactuses!'
    - '§4%n feels the wrath of cactusjack!'
    - '§4%n learns the results of rubbing a cactus!'
    - '§4%n died from cactus injuries!'
    - '§4%n poked himself with a cactus...and died.'
    - '§4%n ran into some pointy green stuff that wasn''t grass.'
    - '§4%n was distracted by a tumbleweed and died by cactus.'

    - '§4%n was blown to bits by a ghast.'
    - '§4 Those aren''t babies you hear, %n!'
    - '§4%n was killed by a ghostly hadouken!'
    - '§4%n just got exploded by a fireball!'
    - '§4%n got too comfy in the Nether!'

    - '§4A slime found %n. The slime won.'
    - '§4%n just was playing with slime. The slime ain''t happy.'

    - '§4%n suffocated.'
    - '§4%n was looking up while digging!'
    - '§4%n choked to death on earth!'
    - '§4%n choked on a ham sandwich'

    - '§4%n lost a fight against a zombie pig.'
    - '§4%n, touching a zombie pig is never a good idea.'
    - '§4%n, looked at a pigzombie the wrong way.'

    - '§4%n fell into The Void, never to be heard from again.'

    - '&4%n became a wolf''s lunch.'

    - '&4%n was struck down by Zeus'' bolt.'

    - '§4%n died from unknown causes.'
    - '§4%n has imploded into nothingness'
    - '§4%n has been vaporized'
    - '§4%n died from explosive diarrhea'
    - '§4%n was killed by Chuck Norris'
    - '§4%n was running with scissors...now he runs no more'
    - '§4%n was hit by a falling piano'
    - '§4%n was assasinated by a shuriken headshot from the shadow'
    - '§4%n was barrel rolling...and died'
    - '§4%n was killed by Cthulhu'
    - '§4%n forgot to wear his spacesuit'
    - '§4%n choked on a ham sandwich'
    - '§4%n died at the hands of ninja assassins'
    # ----- Streaks

    # format <#of kills> <text to display> %n = player getting the message (in this case, the one on a killstreak).

    - '5:§2[%n] 5 enemies killed! You''re thinning the numbers!'
    - '10:§2[%n] 10 killed! Rampage!'
    - '15:§2[%n] 15 kills! Dominating all kinds of mobs!'
    - '20:§2[%n] 20 kills! Here is your gift card for a killing spree!'
    - '25:§2[%n] So many kills in a row! God Like!'

    # format <#of kills> <text to display> %n = player getting the message (in this case, the one on a deathstreak).

    - '5:§b%n has died, like 5 times.'
    - '10:§b%n, craft a sword or something.'
    - '15:§b%n is dead more than alive.'
    - '20:§b%n is just pathetic.'
    - '30:§b%n is clearly playing Minecraft to see what it says when he dies.'

    Reporting Bugs

    If you are reporting a bug, please help me help you. Paste in your config.yml file (in code tags please) and any errors in your console. Also the version of DeathTpPlus you are running (Only the newest version is supported) and your craftbukkit version. Thank you!
    Feew, TheDeejay, harakiwi and 3 others like this.
  2. Offline


    Did you copy over the config.yml file? Can you check your server log for errors when someone dies and print it out? If you've updated craftbukkit (manually, not using a plugin to auto update) since 1/30 it should be working. But seeing as you're not getting the notifications it leads me to believe that it's an old version.
  3. Offline


    I was wondering if that's what was going on there. Thanks for the quick fix! [​IMG]
  4. Offline


    i installed your plugin like 20 times since 1.2 and YES i always copied over the config or whatever file its been called ... still not working and yes im manually updating craftbukkit

    and for the errors, havent seen any so far ...
  5. Offline


    Yea, what is locs.txt?
  6. Offline


    Glad you're enjoying the plugin. If you've got anymore suggestions let me know.

    What other plugins are you running. Maybe they're not playing nice.

    It's the file that holds the teleport locations. You shouldn't ever have to mess with it.
  7. Offline


    Im running WorldGuard, WorldEdit, WormholeXtreme, SniperVoxel, MyHome, TelePlus, PreciousStones(only recently), Permissions, iChat, General and MagicCarpet.
  8. Offline


    STDOUT is your friend... this a great save for its inability to actually print anything to the server console for logging. Your initialization event isn't even logged.
    Many other plugins log init to server.log...
    2011-02-04 08:25:44 Loaded Essentials b131 by Zenexer, ementalo, Eris, and EggRoll
    2011-02-04 08:25:44 [Achievements-v0.2c] Achievements v0.2c Plugin Enabled
    2011-02-04 08:25:44 [Stats-v0.2c] vv0.2c Plugin Enabled

    Would it be possible to have your plugin load log to the server along with the current version of the plugin?

    Also, as an admin, I have my logs parsed into mysql so I can display them via the web. Can you add an option to toggle if you want deaths output the logs or not? My players and myself would really like to be able to see that as it would also timestamp the deaths as well...
  9. Offline


    2011-02-04 21:49:29 [INFO] [Permissions] version [2.0] (Handler) loaded

    As well
  10. Offline


    Can you implement Permissions into this? :D
  11. Offline


    This would be very helpful. :D
  12. Offline


    actually got it working, seems like somehow the config.yml was messed up, when watching it on http://yaml-online-parser.appspot.com/ it was fine but no I rechecked it from my other PC and apparently there was some issue .. well whatever working now ;)
  13. Offline


    It prints the following out when starting it:
    [DeathTpPlus] 5 Kill Streaks loaded.
    [DeathTpPlus] 4 Death Streaks loaded.
    [DeathTpPlus] version 1.5 by lonelydime is enabled!
    It has done that since version 1.0 since that's part of the standard plugin template. The kill/death streaks only started showing once those were implemented. As for console output when someone dies, that's easy enough to do.

    I can! I've done it in another plugin, I'll add it to this one in the next version.

    Yea, the config.yml file has to be pretty picky as to what it wants. It's kinda weird it didn't work for you v1.2-v1.4 though since I only recently started to use yml. Hmm.
  14. Offline


    I dont get it, now it does not work anymore and I changed NOTHING and it worked for hours

    just gonna live without his xD
  15. Offline


    I'd say try removing all the plugins except deathtp and see if it works. If it does, then it's a plugin conflict. Then add them back in one by one and check to see if it works. If it doesn't, we'll know what plugin it is that's conflicting and I can figure out why it's fighting with said plugin.
  16. Offline


    Yes, I know that, but it still doesn't print to server.log, which is what my issue is. I would like it to actually log deaths and initialization to the logs, not just the server console.
  17. Offline


    Ahhh I see what you're saying now. I'll do that then.
  18. Offline


  19. Offline




    - '§4 Die Spinnen haben ein neues Item namens %d.'
    - '§4%d wurde von Spinnen eingenommen.'

    Die Spinnen haben ein neues Item namens %d.
    %d wurde von Spinnen eingenommen.

    the %d won't replace with the playername.
    Bug or my fault?

    deathtp and streaks are off.

    %n only works for PVP!
  20. Offline


    You got it :)

    %n for the dead player's name.

    PvP uses %a for the attacker's name and %i for the item used.
    --- merged: Feb 8, 2011 7:00 PM ---
    Small update, 1.6.

    Added permissions support.
    Plugin enable/disable shows in server.log

    Printing out deaths in the server.log is more complicated than it sounds for some reason, still looking into it.
  21. Offline


    Ohhhh I'm so stupid.... Fail ;)
    Because I copied the text from my old deathnotify.
  22. Offline


    deathtp 1.6 works now ( for now ) ^^
    cant tell you if its a plugin conflict, as I removed some plugins on my server now anyway and using 1.6 it works now again .. but to tell you, your plugin is the only plugin I ever had such issues with ^^
    well whatever, now it works I guess

    death through suffocation does not work though
    --- merged: Feb 8, 2011 9:20 PM ---
    this plugin works JUST fine until I restart my server once and then it wont work for me anymore, this is so annoying WTF
    gonna try deleting and reinstalling it -.-
    --- merged: Feb 8, 2011 9:20 PM ---
    deleting the whole thing and reinstalling it didnt change shit

    so basicly it seems as though the plugin does not even load, no death notifies and no command is working and by not working I mean it just gives no response when I type any of deathtps commands. I do not
    --- merged: Feb 8, 2011 9:21 PM ---
    just tried running DeathTP on vanilla CB271 with no other plugins:
    strange huh?
    I do get
    DeathTpPlus: 0 Kill Streaks loaded.
    DeathTpPlus: 0 Death Streaks loaded.
    DeathTpPlus: version 1.6 by lonelydime is enabled!
    in my console but it just wont work ... oO help?!
    --- merged: Feb 8, 2011 9:23 PM ---
    Okay this is srsly fucked up, I reinstalled the whole plugin 3 times now on my CB271 Server without any other plugins, I edited the config.yml or left it as it was and I tried the plugin with other plugins too and it just doesnt work!

    As I stated above, it loads fine but it wont do anything else. Strange nobody else has this issue, im using MCMyAdmin as a serverwrapper and configured the java server JRM instead of the client JRM to handle the server, just for your information as maybe there could be some source of mistake(that I never had somewhere else though)
  23. Offline


    Ok try this. Replace your streaks in the config.yml with the default:
    # ----- Streaks
    # format <#of kills> <text to display> %n = player getting the message (in this case, the one on a killstreak).
     - '5:§2[%n] Killing Spree!'
     - '10:§2[%n] Rampage!'
     - '15:§2[%n] Dominating!'
     - '20:§2[%n]Unstoppable!'
     - '25:§2[%n]God Like!'
    # format <#of kills> <text to display> %n = player getting the message (in this case, the one on a deathstreak).
     - '5:§b%n is getting killed out there.'
     - '10:§b%n, craft a sword or something.'
     - '15:§b%n is dead more than alive.'
     - '20:§b%n is just pathetic'
    Even if you're not using them, at least 1 needs to be there or config.yml has a heart attack (I believe). Same with death notifications, even if you don't use them config.yml still needs to have the entries there.
  24. Offline


    As I stated above, I reinstalled the plugin 3 times (with the default.yml as well) and it did not change anything.
    Anyway, did what you suggested and no change: it does not answer.
  25. Offline


    Not sure how you are dealing with your version tracking... But would it be possible to have something like .gitignore for items like the .DS_Store and __MACOSX/ files?

    Are they required to deploy to OSX? If not, there shouldn't be a need to include them in the zip file.
  26. Offline


    They're not needed, I just don't see them and sometimes forget they are there. Happens any time I open that folder (it's mac's way of remembering certain things about that folder, with no registry and all). I've removed them and reuploaded the zip file. Sorry about that.
  27. Offline


    I died in game and type /deathtp nothing happen just saying 'you dont have a last known death location'. I thought its automatically setwarp to where I died. what is problem?
    --- merged: Feb 9, 2011 6:42 PM ---
    plus, it doesnt say any message when players die.
  28. Offline


    I thought this was broken as well, and I don't know if anyone else may be having this particular issue, but I played with it and found the cause of it not working for me... I rename most plugin jars to include the version in the filename.

    Some plugins handle this how I would expect... they still store their settings in a directory still named by the plugin name, not the jar file name. MyPlugin.jar stores settings in plugins\MyPlugin... rename MyPlugin.jar to MyPlugin-1.2.jar... settings still go in plugins\MyPlugin... nice. The plugin's name hasn't changed, just the name of the container it's in.

    Other plugins handle this in a way I find amazingly annoying... when renamed they create a new directory matching the new jar file name, and create new config files in that new directory. Very annoying, but if you don't mind migrating your settings manually, it potentially means you have a settings backup for the previous version. This isn't the end of the world, just annoying.

    DeathTpPlus is the first plugin I've seen of a third type... if renamed, it DOES NOT look in it's original location for it's config, and it ALSO DOES NOT create a new config directory matching it's new jar filename. It will still load at server startup, but say that no streaks were loaded. The real issue comes after this, when even though it's loaded, it's lack of finding it's config, and lack of fallback on internal default values, causes it to cease to function AT ALL. It will not announce deaths, /deathtp will not work, etc. (Edit: /deathtp likely doesn't work for the obvious reason that it never saved anything to locs.txt in the first place, though it doesn't seem to tell you that it doesn't have a death location for you in this case either.) And it will fail completely silently and you'll have no idea why. Even the console saying unknown command when you use /deathtp won't give it away, because it says unknown command even when it's working. ;)

    And so, lonelydime, your plugin is great, my server missed it greatly while it was not working due to this, and I would love to see you take care of this issue! :p Either forcing it to look for it's config in the DeathTpPlus dir no matter the jar name like most plugins seem to do... or auto-generating a default config if renamed and config dir not found... or internal fallback on default values if config not found... or even a console/server log warning that it didn't find it's config and won't function otherwise!

    Thank you. :p
  29. Offline


    Thanks for the report, details like that makes it a LOT easier to fix. I'll look at the issue, I was unaware people change the names of the jar. Should be an easy fix. Just "it doesn't work" doesn't help a whole lot and I'm too busy buying a house to go crazy into debugging every issue possible.
  30. Offline


    lol ive never changed the filename or anything
    i told you, even just a default drag and drop into the folder wont make it working on my server right now, but it did work sometime..
  31. Offline


    For you dread, I think your server just hates me lol

Share This Page