DeathBukkit
DeathBukkit
General
DeathBukkit allows players items' to be preserved after death, so that they can be recovered. Specifically, when a player dies with death chests/signs enabled (see the "Use" section below), a chest will be created at the death point, containing the items which were in the inventory of the player prior to being dead (this is highly configurable). A sign will also be created (again, configurable), indicating who the owner of the chest is, as well as the time and date when they died. Right-clicking on this sign will automatically recover the chest's contents, and destroy the chest.
While several other "death chest" plugins do already exist, they are all either out-of-date or abandoned. This plugin is intends to supersede those plugins.
A server owner could easily change the configuration file and customize timings such that:
A chest will be inaccessible by only the dead player for X minutes. A chest will break after Y minutes.
News
DeathBukkit Release v1.0.1
DeathBukkit v1.0.1 is a huge update. It adds multiple commands, different chest types, many bugfixes and better permissions system. It was the product of a lot of effort and consists of more than 1,409 new lines of code.
DeathBukkit Release v0.3.0
DeathBukkit v0.3.0 re-adds the ability to make chests exist of an infinite amount of time (no expiry). It also stops chests from "auto-expiring" when the sign is clicked and the player's inventory is filled.
DeathBukkit Release v0.2.1
DeathBukkit v0.2.1 fixes a potential TileEntity CCE.
Use
Configuration
Just drop the plugin in your plugins directory and next time the server is run it will automatically generate it's config file for you. The 2 options in the plugin config file are self explanatory (seconds until unlock and seconds to expiration) and the defaults are:
- unlockAfter: 0
- expireAfter: 0
A value of zero indicates that the chest should unlock/expire immediately and a value less than zero indicates that the chest should never unlock/expire. Any other value is a time in seconds.
Types
DeathBukkit uses a type-based system for extra configurability. Chest types can be configured per player and define what happens when a player dies. You set a player's chest type by giving them the permission "deathbukkit.type.<name of type>" (e.g. to the set "grave" type a player should be given the "deathbukkit.type.grave" permission). If no chest type is set for a particular player, that player will not have a chest created for them.
Currently, three different death chest types exist, and they are listed below. The order of this list matters. If a player has more than one chest type set, DeathBukkit will ignore all but the type that appears first on this list.
Name | Description | Image |
---|---|---|
grave | Creates a sign at the place of death containing information about the player's death including time of day. By right-clicking the sign, items can be retrieved. | View |
doublechest | Creates two chests containig the entire contents of the player's inventory. It is located at their place of death and also includes a sign, similar to "grave". | View |
singlechest | Creates a single chests containig as much of the player's inventory that can fit. Extra items are dropped on the ground. It is located at their place of death and also includes a sign, similar to "grave". | View |
Commands
Please Note: Commands may also be prefixed with the alias /deathbukkit instead of /db.
Name | Description |
---|---|
/db | Displays your number of chests. |
/db loc | Alias for "/db loc 1". |
/db loc <num> | Displays chest <num>'s location. |
/db tp | Alias for "/db tp 1". |
/db tp <num> | Teleports you to chest <num>. |
/db reload | Reloads the config file. |
Permissions
Please Note: Wildcard *s are valid in permission nodes (e.g. "deathbukkit.commands.*" grants access to all permissions beginning with "deathbukkit.commands.").
Name | Description |
---|---|
deathbukkit.command.status | Permits "/deathbukkit" |
deathbukkit.command.loc.first | Permits "/deathbukkit loc" |
deathbukkit.command.loc.any | Permits "/deathbukkit loc <num>" |
deathbukkit.command.tp.first | Permits "/deathbukkit tp" |
deathbukkit.command.tp.any | Permits "/deathbukkit tp <num>" |
deathbukkit.command.reload | Permits "/deathbukkit reload" |
deathbukkit.type.grave | "Grave"-style DeathBukkit chests should be created for this player |
deathbukkit.type.doublechest | "Double chest"-style DeathBukkit chests should be created for this player |
deathbukkit.type.singlechest | "Single chest"-style DeathBukkit chests should be created for this player |
Media
By: VariationVault
By: luigi_vampa
Download
The latest plugin build can be downloaded here.
Latest Changes
- Fixed config parsing
- Fixed config loading
- Added death sign
- Fixed armor loading
- Fixed serious chest inventory reading bug
- Fixed potential TileEntity CCE
- Re-added the ability to make chests exist of an infinite amount of time (no expiry)
- Stops chests from "auto-expiring" on click
- Added /db, /db loc and /db tp commands
- Added chest type permissions
- Added "grave" chest type
- Added "single" chest type
- Improved code modularization
- Fixed config parsing bug (can't set unlockAfter to infinite when expireAfter is finite
- Overall better code and code cleanup
Planned Features
- More customizable options - Feel free to suggest anything!
How Can I Help?
This plugin is developed solely by me in my free time so:
- If you are a developer would like to contribute to this project, or any of my other projects, please PM me or email me at [email protected].
- If you are a not developer but would still like to contribute somehow, please consider donating. Donations are highly valued and much appreciated.
About
Developer: Keeley Hoek (escortkeel)
@xuromon
For adventure mode maps you could temporarily change the player to a group that does not have the deathbukkit permission by maybe using a commandblock and a pressureplate. Then when they successfully complete the adventure map it restores their group. If you have multiple groups for users maybe this also could be done with a Citizen2/Denizen NPC script. The NPC could check and remember their group and then restore it when the adventure map is completed. In both cases there might be issues if the system reboots and the NPC "forgets" the player.
@predawnia
I have noticed the same thing with chests too. I find I need to delete a lot of unclaimed chests after awhile because they have been made permanent. Maybe deathbukkit could delete all signs and chests form user deaths during a reboot?
Could you please add the ability to turn on only in selected worlds?
Looking for a deathchest type plugin. Tried all the rest and they fail. One even teases my players by telling them their contents are stored in a chest but the chest doesn't exist no matter what we do. Fail.
Found this one. Flawless except for one SUPER HUGE PROBLEM and it looks like a few others have reported this... armor becomes lost on death. Not cool.
Fix???
Loved this mod until I found out it was not giving people back their armor.
I can't run this plugin with Java 6, because of error:
java.lang.UnsupportedClassVersionError me/CMG/DeathChest/DeathChest : Unsupported major.minor version 51.0
Where I can get source code of this plugin to compile it for Java 6?
One more thing my user notices. If you die and get a grave (sign) and did not recover your items and the server restart, the sign becomes a normal sign (losing all your items).
It is possible for you to make it compatible with DiabloDrops?
http://dev.bukkit.org/server-mods/diablodrops/
All the enchantments were wiped and become normal items after retrieving from grave. :(
Count me as another vote for per-world options. This works great for SURVIVAL mode but now that I've added a couple ADVENTURE maps to my server, the chests on those worlds are getting in the way and causing item duplication. Would like to be able to disable deathbukkit on certain worlds.
Also, for my purposes it would be awesome if you could have a command to make your compass show the direction to a chest... as a slightly more challenging alternative to just insta-porting there.
I would be interested in Multi-World configuration support if possible. Different values for each world would be nice to have. And being able to disable in some worlds also sounds like a good idea.
Although this isn't necessary, it might be a nice add-on if possible.
Also, how does this handle death events by plugins like Mob Arena and PvP Arena. I don't really want any unnecessary chests floating around in the arena.
@kezzawozza You use your permissions plugin to differentiate the permissions of each group. Then you add one of these permissions (or as many as you want for that group): deathbukkit.type.singlechest deathbukkit.type.doublechest deathbukkit.type.grave
The same bug as @predawnia so please fix it !
Suggestion: Enable/disable DeathBukkit on a per world basis. It works great on my PVP and Build world but is unnecessary in creative worlds and adventure worlds. The biggest issue is with adventure worlds. When building an adventure map you want to control the amount of resources (food) and weapons the player has with DeathBukkit the player can double up on resources which makes beating the map easier. Also the Death Chests and Signs get in the way of the adventure game. With creative world you rarely died and it does not matter if you get your stuff back or not. Could save on system resources (maybe?) removing it from the world.
Love the plugin and looking forward to further updates!
Using 1.0.1 and I am not getting back the armor I wear when I die. All other items were restored, but not the armor I wear.
Anyone encountering this? There is no error in the logs either.
Please recompile this using a Java 1.6 compiler. Not everyone is running 1.7. Thank you!
@kezzawozza
The permissions are listed in the description. Read the description again you might have missed it.
Hi, we really need this plugin but it only works for admin. Can't have players opted!!! Please help me to configure this; the config directory only has a couple of configurable items in it; the unlock and expire. There's nothing else. How do I set up permissions for individual players? bugalugs
If you die by a creeper the creeper also breaks the sign and you can never get your items back. Can you add a protection on the sign for this reason?
why im owner and op cant destroy other player chest?
We're using signs and are also seeing that armor isn't restored with 1.0.1. I'd be happy to help troubleshoot and/or try dev builds if you'd like. Also, we're running 1.4.7 R1.0 and no matter how I set the permissions (singlechest, etc), we always see signs. For now, I'm just treating the loss of armor like it's a feature :-)
May have to return to deathtpplus till some of the bugs are ironed out.
My players have learned how to destroy things with deathchests and steal other chests with it as well. :(
I know you have been gone for a bit, but please when you can a few fixes would be great.
Thanks for your time!