[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


    It's can be set to automatically teleport user to his death locations? And where is properties file? I have only locs.txt.
  3. Offline


    The properties file hasn't been implemented yet because there really isn't anything to configure.

    I'll add an option for auto-teleport and that'll be the first thing that does in the properties file :)
  4. Offline


    Just curious, did the absolute latest build break this plugin? (I have the plugin which downloads the latest version every time I launch)
    Was unable to use /deathtp and it made no announcer when a friend died.
  5. Offline


    Let me check right quick.

    EDIT: I just upgraded to the latest craftbukkit and it looks to be working fine. Does it throw any errors when you start it up? What does your locs.txt file look like?
  6. Offline


    No errors pop up, but the locs.txt was empty when I checked it. Perhaps because it was the first time running it and it had to create the file still?

    I would test it again, but I am unable to log into multiplayer right now due to minecraft issues.
  7. Offline


    It creates the file the first time it starts. It shouldn't need another restart to work. As soon as someone dies you'll see an entry in that file like:


    Try manually updating craftbukkit. If you're not getting death messages when someone dies my guess would be the ENTITY_DEATH hook isn't firing.
  8. Offline


    Just tried it again. I keep getting this now when I type /deathtp "You do not have a last known death location."

    DeathTP's folder with the loc.txt is in the folder for Plugins.
    ie: Bukkit > Plugins > DeathTP > loc.txt

    EDIT: Alright. I'll try a manual update. I'll edit afterwards.

    EDIT: That was it. The auto-updater wasn't fully updating stuff it seems. I'll switch it to no longer download, and just notify me of updates instead. Thank you!^^
  9. Offline


    No problem, glad that fixed it for you. Enjoy! :)
    --- merged: Feb 1, 2011 9:37 PM ---
    Updated to 1.1 to include deathnotify messages.
  10. Offline


    I'm using 166 I think =( Im to worried to to update.... but I really want this... Sigh
  11. Offline


    You can always backup the craftbukkit.jar that you're currently running, update and rollback if anything horrible happens :)
  12. Offline


    Great plugin, fills yet another hole in my hMod to Bukkit conversion. Haven't tested ALL death types, but everything that I have tested seems to work on build 211, including the /deathtp command. Thanks!
  13. Offline


    I would like the DeathNotify part, but not the tp tp death location aspect.
    Maybe add a nice prop file so we can personalize the death messages and toggle on/off the tp to death location.(the tp to death location takes some of the penalty of death away on servers that are survial geared)
    Or hook it to permissions and just have it so only those with the command can use it.
  14. Offline


    I'll add the toggle command property to the properties file and release a new version here in a minute
    --- merged: Feb 2, 2011 11:34 AM ---
    Uploaded the new version, you can turn either deathtp or deathnotify off via the properties file.
  15. Offline


    Is it possible to require an item to teleport back and have it consumed on teleport?
  16. Offline


    I can manage that. I'll add it in the next update, the new version is in testing :)
  17. Offline


    Can we have multiple messages per type of kill? For example,

    FIRE=%n burned to death.
    FIRE=%n was killed by fire.

    It would be helpful.

    EDIT: The message it displays should be random, if there are more than 1 for that death.
  18. Offline


    Lol, I was just going to post requesting randomly chosen messages as well. I second this. Obituary for hMod supported that feature, and made it very fun creating awesome messages.

    Just for kicks, here's my obituary message config. I thought it was funny. xD

    lava:<cc><player> fell into lava. The poor soul.
    lava:<cc><player> died in lava. The ring is destroyed.
    water:<cc><player> has drowned. Somebody get his equipment.
    water:<cc><player> is now floating dead in the water.
    suffocate:<cc><player> died of suffocation.
    suffocate:<cc><player> suffocated to death.
    creeper:<cc>A creeper had fun with <player>.
    creeper:<cc><player> was blown to bits by a creeper.
    creeper:<cc><player> mocked the creeper and died.
    creeper:<cc><player> played with the creeper and made it mad.
    creeper:<cc>A creeper tried to mate with <player> and failed...epicly.
    entity:<cc><player> was killed by <killer>.
    player:<cc><killer> killed <player> with a<n> <item>.
    ranged:<cc><killer> killed <player> with a<n> <item> at a range of <distance>m.
    skeleton:<cc>A skeleton shot down <player> at a range of <distance>m.
    spider:<cc>A spider ate <player>.
    zombie:<cc>A zombie mangled <player>.
    pigzombie:<cc>A zombie pigman slaughtered <player>.
    ghast:<cc>A ghast blew <player> to bits.
    ghast:<cc>A ghast enjoyed murdering <player>.
    fall:<cc><player> fell to his death.
    fall:<cc><player> died from a terrible fall.
    fall:<cc><player> committed suicide by falling.
    fire_tick:<cc><player> burned to death.
    fire_tick:<cc><player> played hot potato and died.
    fire:<cc><player> fell into a fire and died.
    cactus:<cc><player> died touching a cactus. Come on, really?
    explosion:<cc>TNT exploded and <player> died.
    explosion:<cc><player> was blown to bits in a TNT explosion.
    suicide:<cc><player> killed himself.
    That also gives an idea on how the plugin was designed. Any of those features would be nice, but the priority is the multiple messages.

    Oh and I think you missed PigZombie (Zombie pigman), Ghast, and Suffocation.

    I have no idea how suicide is triggered in the Obituary plugin though, lol.
  19. Offline


    Deathtp (hMod) used to have a command /suicide. This one does too, but it's bugged as when you set a player's health to 0, your items don't drop. I didn't announce I added it since I know it's bugged.

    Great ideas, I'll get that added as well. I'm working on custom kill/death streaks to display right now, it's almost done :)

    Yea, I kind of skipped the nether mobs, oops. I'll get them added in as well.
    --- merged: Feb 2, 2011 10:41 PM ---
    Update 1.3 out. I'll work on the suggestions made today in the next version, 1.4 (hopefully out tomorrow).
  20. Offline


    Could you zip your plugin so it can be extracted in the minecraft/plugins folder without having to move the files around.
  21. Offline


    Hey thanks. But can you make a small version of your plugin, only for DeathNotifys?
    Would be great!

    Would be very nice.
    Can you change the Format, so we can use our old files from hmod DeathNotify?

    Cut-otu from the config:

    §4%d ist in einer Pfuetze ersoffen
    §4%d ist abgesoffen
    §4%d braucht Schwimmunterricht
    §4%d ist die Luft ausgegangen
    §4%d hat beim Luft anhalten gewonnen
    §4%d wurde vom Kaktus zu Tode gestachelt
    §4%d macht einen auf "Hellraiser"
    §4%d umarmte einen Kaktus
    §4%d hat Kakteen gerne, sie ihn aber nicht
    §4%d hat sich angesteckt
    §4%d brennt lichterloh
    §4%d wurde getoastet
    §4 heute frisch... %d extra knusprig
    regardless if § or & for colors.
  22. Offline


    Sure thing. I'll make sure to do that for today's release.

    To make it just death notify set the following:
    The bulk of the code right now is deathnotify and with those set it shouldn't even read or write to those 2 files. It will create them, but the load should be about the same without those two components.
  23. Offline


    Sounds good.
  24. Offline


    Update 1.4 is out.
  25. Offline


    So anxious, can you release a 1.45 with the current multiple messages? I don't really care about colors right now.. :D
  26. Offline


    Just got done testing the messages, colors are just going to be part of the config for now. I'll get a release out for you here in a few minutes :)
    --- merged: Feb 4, 2011 12:31 AM ---
    Version 1.5 is out!
  27. Offline


    Yaaaay! Multiple messages for each death type! Thankyouthankyouthankyou!

    There seems to be an issue with 1.5 though (never tested 1.4, so I don't know if it existed there or not....) where, no matter how I die (I've tested drowning, Zombie, cactus, lava, and falling thus far) it always tells me that irsmartlikerock killed me with a pickaxe. I don't even have anyone by that name on my server. :p

    Here's my config.yml, if it matters: http://pastebin.com/r5dGcyB8 Made a few changes, but only to the death messages, most everything else is plain-vanilla default.

    I'm running build 238 of CraftBukkit. Let me know if there's any other information that I might be able to provide.
  28. Offline


    Mini suggestion: Could you make config.yml be made when the folder is made? (/plugins/DeathTpPlus/config.yml)?
  29. Offline


    Son of a...
    Left my test debug in there. Sorry about that! I wonder if you can figure out who helps me debug my code lol.

    I reuploaded and it should be good now.

    It creates the file I believe, but it doesn't populate it. I'm sure there's a method to do it that I missed, I'll work on that.
  30. Offline


    for some reason I just cant seem to get your plugin working ... been trying since 1.2 now and it NEVER worked oO
    there are no death notifies and if you try /deathtp it will just throw "command not available" or sth

    also locs.txt and streaks.txt are always empty, I dont know what to do :(
    so build 238 and deathtp 1.5 does not work for me too

Share This Page