[UNSUPPORTED][MISC] Tombstone v1.3.6 - A deadmans chest plugin for Bukkit [1317]

Discussion in 'Inactive/Unsupported Plugins' started by Drakia, Feb 10, 2011.

Thread Status:
Not open for further replies.
  1. Offline


    Tombstone - A deadman's chest plugin
    Version: 1.3.6
    CraftBukkit: 1317
    This plugin support SuperPerms. Please do not ask about setting up SuperPerms in this topic, ask here: http://forums.bukkit.org/threads/permissions-faq.25080/

    Plugin Dependencies:
    Permissions (Optional)
    LWC (2 or 3) (Optional)

    If you want help, post the output of the "version" command, and make sure you're running atleast the version specified in the topic title.
    Please post your server log when asking for help with tombstones not spawning
    Do not bother asking for help if you killed the player using anything other than basic attacks. I do not guarantee support for any plugin-based attacks or deaths such as /kill!

    Save your players' inventory from disappearing when they die.
    I used Deadmans Chest in hMod and thought it was a great plugin, so I started my own version for Bukkit.

    Download: http://thedgtl.net/bukkit/Tombstone.jar
    Source: https://github.com/TheDgtl/Tombstone

    If the player is carrying a chest when they die, place that chest and fill it with as much of their inventory as possible
    If the player is allowed, and is carrying two chests, a large chest will spawn to catch all of their inventory
    Possible for specific groups/players to be given free chests with no need to carry one with them
    Any items that won't fit in the chest will still drop to the ground!
    Supports the Permissions plugin, will default to allowing everyone to use basic tombstone if not available
    Supports LWC for chest AND sign protection if it is installed
    Configurable timeout for LWC unprotection
    Configurable timeout for destruction of tombstones, works in unloaded chunks as well
    Quickloot support, right click the sign on a tombstone to loot all items in it (Your tombstone only!)
    Place a sign on top of the chest with a configurable template
    The ability to point your compass at your tombstones!
    Supports "SuperPerms"

    Config Notes
    If you are going to be giving your players a free chest/sign, but don't want them to be able to retrieve those as extra items, you can now set the noDestroy option in the Tombstone config file.
    If you do set the noDestroy option, it is highly recommended that you set a timeout for Tombstone removal, because even once LWC is disabled the chest is still not destroyable by any means other than quicklooting it.
    With noDestroy enabled, if a player dies without a sign, then their chest will be indestructible until it is removed by Tombstone itself.
    It is not recommended to use the noDestroy option without the destroyQuickLoot option


    lwcEnable - Whether to use LWC if available
    lwcRemove - Whether to remove LWC after a specific timeout
    lwcPublic - Set to true to set LWC protection to Public instead or removing
    lwcTimeout - How long to wait before disabling LWC on a tombstone (in Seconds)
    tombSign - Whether to place a sign on the tombstone
    removeTime - How long to wait before destroying a tombstone (in Seconds)
    tombRemove - Whether or not to destroy a tombstone after a timeout
    playerMessage - Whether or not to show messages to the player
    saveTombList - Whether to save a list of tombstones between server reloads
    destroyQuickLoot - Set to true to destroy the chest/sign on quickloot
    noDestroy - Set to true to disallow any player from destroying a tombstone (Other than quickloot)
    noInterfere - Set to true to stop tombstones from being created next to other chests (Items are dropped to ground instead)
    logEvents - Whether to print some "useful" information to the server terminal.
    skipBuildCheck - Set whether to skip the blockPlace check (True to bypass region protection) (Default false)

    Sign Template
    The sign template is stored in plugins/Tombstone/sign.tpl
    The following variables are able to be used in the sign template:
    {name} - The players name
    {cause} - The cause of their death, or their killers name if it was a player
    {date} - The date of their death
    {time} - The time of their death

    The sign template is 4 lines correlating to the 4 lines of the sign. The maximum length
    of a line is 15 characters. The default sign template is as follows:
    Killed By

    Permissions (Either via SuperPerms, or Permissions 2.x/3.x)
    tombstone.use - (Default) Allow the player/group to use the tombstone mod
    tombstone.freechest - Allow the player to get a chest whether they are carrying a chest or not
    tombstone.large - Allow the player to spawn a large chest if carrying two chests and if one will fit
    tombstone.lwc - (Default) Protect the placed chest if LWC is enabled
    tombstone.sign - (Default) Whether the player gets a sign on their tombstone chest
    tombstone.freesign - Allow the player to get a free sign whether they are carrying one or not.
    tombstone.quickloot - (Default) Whether to allow a player/group to quickloot by right clicking the tombstone sign.
    tombstone.admin - Allow this user to destroy other players tombstones.
    tombstone.cmd.tomblist - Allow this user to use /tomblist
    tombstone.cmd.tombfind - Allow this user to use /tombfind
    tombstone.cmd.tombreset - Allow this user to use /tombreset

    /tomblist - List all your tombstones
    /tombfind - Gives you a direction from your current location to your tombstone. Use with /compass (Sync'd to CommandBooks /compass)
    /tombreset - Doesn't do anything.

    Q) Can you add support for {PluginX}?
    A) No.

    Q) Player items are being duplicated, and I'm using SlowHealth, whatsup?
    A) http://forums.bukkit.org/threads/mi...ugin-for-bukkit-1000.3923/page-18#post-550275

    [Version 1.3.6]
    - Added 'skipBuildCheck' option
    [Version 1.3.5]
    - Fixed accidental clearing of /tomblist on quickloot
    - Added SuperPerms support
    - Do a build permission check so we don't spawn a chest in protected areas
    [Version 1.3.2]
    - Apparently LWC 3.30 had a change in API that wasn't documented, yay
    [Version 1.3.1]
    - Recompiled with LWC 3.30
    [Version 1.3.0]
    - Added sign template
    - Tombstone no longer created in void death
    - Re-enabled the compass for /tombfind
    More Changes (open)

    [Version 1.2.9]
    - Fixed free double chests
    - Made freechest/freesign default to isOp() without permissions
    [Version 1.2.8]
    - Added logEvent option for debug purposes.
    - Do a 3x3 check for a block to place chest.
    [Version 1.2.7]
    - Check properly if we're placing a big chest for interference
    [Version 1.2.6]
    - Fixed issue with name length
    [Version 1.2.5]
    - Option to bail on tombstone creation if it will interfere with another chest.
    - Check tombstone stuff more often (Every 100 ticks (5 seconds))
    [Version 1.2.4]
    - Fixed sign drop bug when destroying with timeout.
    [Version 1.2.3]
    - Fixed a bug in /tombfind with invalid input
    [Version 1.2.2]
    - Moved playerInteract to Highest priority since we remove a block.
    - Added check to make sure the tombstone is a chest before we doing anything.
    - Other general checks
    [Version 1.2.1]
    - Made /tombfind a bit more useful, will give a NESW direction.
    [Version 1.2.0]
    - Added compass commands.
    [Version 1.1.8]
    - Right-clicking a chest will quickloot/destroy if you have noDestroy/destroyQuickLoot enabled
    [Version 1.1.7]
    - Fixed quicklooting in RB670
    [Version 1.1.6]
    - Fixed some owner comparisons.
    [Version 1.1.5]
    - Moved setting "plugin" to onEnable
    - Moved setLine() outside of scheduler
    [Version 1.1.4]
    - Added more LWC checks
    [Version 1.1.3]
    - Added tombstone.admin
    [Version 1.1.2]
    - Fixed loading tombstone list after server restart
    - Check if player is online before sending tombstone messages
    [Version 1.1.1]
    - Updated to latest RB
    [Version 1.1.0] - Only updating for LWC2 from here on
    - Changed versioning scheme
    - Changed loading of permissions/LWC
    [Version 1.09]
    - Updated sign update code, should work better
    - Updated for LWC2, there is now an LWC1 build, and an LWC2 build
    [Version 1.08]
    - Configurable tombstone list storage
    - Allow LWC to be set to Public instead of disabled
    - Allow destroy on quickloot
    - Allow tombstones to be "invincible" besides quickloot
    [Version 1.07]
    - Fixed a bug in which protected chests could be destroyed.
    - Messages to players can be turned off.
    [Version 1.06]
    - Item-dupe fix broke plugin, fixed
    [Version 1.05]
    - Re-compiled for b522 to fix ItemStack.equals error
    [Version 1.04]
    - Small permissions handling update
    - Inform player if we run into a casting problem.
    [Version 1.03]
    - No longer treat GM as a special case, just load it as Permissions 2.0 like the author intended
    [Version 1.02]
    - Support Permissions 2.0/2.1
    - Support GroupManager
    [Version 1.01]
    - Fixed a Null Pointer Exception when chests are destroyed
    [Version 1.00]
    - Added ability to remove chests without needing LWC
    - LWC and remove thread are now a sync task
    - Right-click sign to quickloot. Permission added.
    - Better Permissions handling
    - LWC protects sign
    - Only create a large chest if needed
    - Deactivate LWC protection when sign or chest is destroyed
    [Version 0.06]
    - Implemented tombstone signs
    - Changed message if LWC is enabled to say how long before unprotect/destruction
    - lwcTime of 0 now indicates that LWC protection never expires
    [Version 0.05]
    - Added config file
    - Implemented chest removal
    - Configurable timeout
    - Toggle LWC usage via config
    [Version 0.04]
    - Added LWC timeout
    [Version 0.03]
    - Added LWC support
    - Made Permissions optional instead of required. Default without Permissions is allow all to use
    [Version 0.02]
    - Initial Public Release
    ray landers, Montag, harakiwi and 9 others like this.
  2. Offline


    This is great, I can't wait to test it later. Thank you!
  3. Offline


    Nice, thanks :)
  4. Offline


    working great so far!
    how does this work with buildings? like you die next to a building, will this plugin only create chest blocks if no other blocks will be overwritten?
  5. Offline


    There are certain blocks it overwrites (flowers, water, lava, fire, snow, stuff like that) but it won't destroy any actual blocks to place a chest. If it can't find room for a chest then it just drops the items as normal and informs the player of that.
  6. Offline

    Cosmic Break

    if a player falls into a pool of lava and dies and it makes a chest, it will replace the lava and the lava will bburn the chest or make the chest inaccessible. this is a problem.
  7. Offline


    This is actually a good thing; If the chest cannot find a suitable area but places itself anyway, Your world file might corrupt.
    How about a compliment? If your chest is burned it's the end of the world isn't it?
    Seems like it attempts to find a suitable area in of a certain X,Y,Z radius. If a suitable place is not found, the contents are dropped.
  8. Offline

    Cosmic Break

    this is a nice plugin though, with the death of the deathtp plugin, this is a good replacement.
  9. Offline

    Don Redhorse

    hmm would be cool if you could integrate it with lwc.. so that the chest will be autoprotected..
  10. Offline


    If a player falls into lava without this plugin, their items hit the lava and they burn up anyways. This plugin will place a chest IN the lava, which is actually still accessible and will not burn up (Lava doesn't burn placed chests). To access a chest in lava you just need to get to where you died (Above the lava, of course), look down, and right click.

    The chest doesn't do a radius lookup, if the player died on a certain block there's a 90% chance that the block is something we can replace (Air, snow, flower, etc) or is a half-block that we can place above (Half-step, torch, track). There are some instances where the chest won't be placed (A wall torch placed above a track will cause your items to drop to the floor) but I was trying to make the plugin efficient, and if the items drop anyways, then they're still salvageable.

    I'll take a look at LWC, we don't use it on our server so I never thought of it.
    --- merged: Feb 11, 2011 2:10 AM ---
    New version (v0.03) posted, supports LWC, no longer requires Permissions, but uses it if installed.
  11. Offline


    great, the addition of LWC is a nice idea!

    BUT (and this is very important for me, otherwise I cannot update from 0.2):
    Please add some "timer"-function on the chest, as otherwise the chest will became UNDESTROYABLE because of LWC and if some player are getting to lazy too pick them up there will be chest all over my world which only I can destroy and this would be waaay to much a hazzle for me to go around destroying all unused or forgotten chests oO

    So kinda like the chest becomes destroyable/openable by anyone after like 30 mins and after an hour the chest destroys itself. Probably just requires a seperate thread and some table containing the infos about the chest, I think you can do it! =)
    Would be a very nice and very cool plugin that way as it wouldnt(or rahter wouldnt be able to) bloat my server with chest xD

    Oh and maybe add some kind of instant-pickup feature? would be great! so kinda like you rightclick your chest and itll dissolve and put all its contents into the players inventory(maybe also in the same order as when the player died?^^)

    I think this could become my plugin number one =)
  12. Offline


    This looks really cool. Can we get an update to CB300? Right now it throws up errors in console.
  13. Offline


    Well, That was a good start *Chuckles* Running #292

    ALLVARLIG: Could not load plugins\Tombstone.jar in plugins: null
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:57)
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:117)
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:82)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:53)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:169)
    at net.minecraft.server.MinecraftServer.c(MinecraftServer.java:156)
    at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:108)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:207)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)
    Caused by: java.io.FileNotFoundException: Jar does not contain plugin.yml
    ... 9 more

    Also your Mdiafire link (YUCK!) isn't working. The direct one is what I'm testing.
  14. Offline


  15. Offline


    I do still get the Invalid or Deleted file on that Mediafire link... Just tested 0.3 on #302 and I'm getting the same error- Strange?
  16. Offline


    Ah freaking WYSIWYG editors, fixed the Mediafire link. And I just tested with the direct JAR link and it's working fine, are you sure it's getting the full file? What's the size on it?
  17. Offline


    Funny you should say that, I was just looking at that including the content of the .jar, It most have skipped certain parts of the file as it was clearly missing files in the root. After grabbing it a fourth time I manged to get the full one and once loaded I see it's 0.3 *Chuckles* Giving the Mediafire a try in a second though :)
    --- merged: Feb 11, 2011 7:15 AM ---
    Alright, This time the Mediafire worked flawlessly, however... Before setting it up on my server I opened up to check the yalm, This still seems to be 0.3 :/

    Size of current: 11.15
  18. Offline


    That's weird, I uploaded a new copy to the thedgtl.net link just incase something messed up, so give that one another try, again I just tried it and it's working properly.

    I also re-uploaded to Mediafire, I dunno what was going on there, their site seemed to have cached the old version for some reason.
  19. Offline


    Wohoo, Looking at the yalm from thedgtl.net and It's finally the 0.4 :)

    Now let's have a crack at this! Thanks a whole lot Drakia!

    EDIT: For heads up, looks like your Mediafire link broke again *Chuckles*
  20. Offline


  21. Offline


    Bah, screw Mediafire, I will just host on my own site from now on, haha. Glad to have fixed the links for you.
    Let me know if you guys run into any issues, but please try to be more detailed than "It doesn't work" ;) Haha.
  22. Offline


    Doesn't think it works on v304, since all my items are still spilled, and the chest's not unlocked. but chests do generate when I die.
  23. Offline


    "It doesn't work!"

    Some more details though,
    CB 302, Tombstone 0.4, LWC 1.491

    Starts fine, everything is good.
    2011-02-11 11:06:12 [INFO] Tombstone v.0.04 is enabled.
    2011-02-11 11:06:12 [INFO] [Tombstone] LWC Found, enabling chest protection. Enabling LWC disable thread.
    But then, accident of death.

    Feb 11, 2011 11:08:40 AM org.bukkit.plugin.SimplePluginManager callEvent
    SEVERE: Could not pass event ENTITY_DEATH to Tombstone
    java.lang.NoSuchMethodError: com.griefcraft.sql.PhysDB.registerProtectedEntity(IILjava/lang/String;Ljava/lang/String;III)V
        at net.TheDgtl.Tombstone.Tombstone.activateLWC(Tombstone.java:96)
        at net.TheDgtl.Tombstone.Tombstone.access$0(Tombstone.java:91)
        at net.TheDgtl.Tombstone.Tombstone$eListener.onEntityDeath(Tombstone.java:211)
        at org.bukkit.plugin.java.JavaPluginLoader$40.execute(JavaPluginLoader.java:328)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:60)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:214)
        at net.minecraft.server.EntityPlayer.f(EntityPlayer.java:99)
        at net.minecraft.server.EntityLiving.a(EntityLiving.java:387)
        at net.minecraft.server.EntityHuman.a(EntityHuman.java:288)
        at net.minecraft.server.EntityPlayer.a(EntityPlayer.java:125)
        at net.minecraft.server.EntityLiving.a(EntityLiving.java:483)
        at net.minecraft.server.Entity.a(Entity.java:582)
        at net.minecraft.server.EntityPlayer.b(EntityPlayer.java:240)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:244)
        at net.minecraft.server.Packet10Flying.a(SourceFile:126)
        at net.minecraft.server.NetworkManager.a(SourceFile:232)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:72)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:104)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:317)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:232)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)
    2011-02-11 11:08:40 [INFO] ***** fell to their death
    A chest spawns, not protected, all items dropped beside the chest which stays empty.
    Hopefully helpful, if not, if you require more info or anything, give a shout :)
  24. Offline


    I was going to put up a screenshot, but you beat me to it :p
  25. Offline


    Update to the latest LWC from: https://github.com/Hidendra/LWC/raw/master/dist/LWC.jar
    The author of that plugin isn't updating the version number every time he updates the plugin, so there's currently ~6 revisions in his github account with the 1.491 version number. The function I use for securing a chest was updated 4 days ago, so if you just grab the latest .jar file from him it should fix the issues.
  26. Offline


    That did the trick... didn't know about that, but thank you :)
  27. Offline


    Does the timeout feature just make the chest available for anyone to access, or does it remove the chest and items from the world? If it's not the latter, is it possible to request the feature? I'm hestitant to using this because I don't want my map littered with chest :|
  28. Offline


    A config option for removing chests will come later tonight after I'm off work.
    --- merged: Feb 13, 2011 5:20 AM ---
    Uploaded 0.05 which adds config options, and enables chest removal.
    plugins/Tombstone/config.yml will be auto-generated on the first run.
  29. Offline


    thank you so much! loving it
    --- merged: Feb 13, 2011 7:06 AM ---
    just found out, that if you got tombstone.freechest you will get free chests EVERY time when you die, even though you might have chests in your inventory

    could you plz change it so that tombstone.freechest only grants a chest if the player has no chest? or make it configurable =)

    thank you
  30. Offline


    Well, freechest is just that, a free chest. It means that a chest isn't taken from their inventory to place down, and isn't something I plan on changing yet, I will think about it though.

    Version 0.06 is up, check first post for changelog. I added signs!
Thread Status:
Not open for further replies.

Share This Page