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)
Arg I am so Stupid....I never saw that option in DeathTPPlus
It would be awesome though if this plugin had that option. It's much more light weight and I'd still like to give this a shot
BTW while testing I found a bug - if you die in any sort of liquid, tp back and fast loot it by right clicking the sign (if the sign is under water / lava) you will crash with either a red / blue screen and everyone around you for 50 - 100 blocks it seems.
@Mortalsinn
This becomes a problem in arenas, not for me as I have it in a different world but for others its a big issue.
Which plugin did you use in the past? Wild guess it was DeathTpPlus, and that had an option for respecting WG or not.
If it was another plugin it should have been configurable.
@LiLChris06
wait wait wait......it spawns in a world guard region?
@escortkeel PLEASE don't fix this or make it an option - Ive been looking for something like this forever. I have World Guarded PVP zones and not having death chests drop = all their loot all over the ground.
There is some WG Custom Flags plugin that is supposed to allow for specific block placements but it doesn't work
@datacrypt
Single/double chest works fine, did an hour of testing and its currently live on the server.
Only bug is it spawns in a WG region.
Edit: 18 hours with it live, no complaints thus far. :D
escortkeel, saw you on the server...but you ignored me. -.-
Errors: http://pastebin.com/HCYwvd6K & http://pastebin.com/bMM8JPcR
@datacrypt
Looks like I'll switch to single chest then. Can you verify on your test box?
@datacrypt
Oh I wasn't using graves, just single/doublechest.
Sorry to hear that is happening then. :(
@LiLChris06
I am using "Graves" and it doesnt appear to get the armor.... I just tested it. Happens consistently. Everything else comes through fine.
Spawning next to a cactus will destroy it and it will not come back.
Don't care too much about that but just letting you know, I assume it can happen with other blocks as well.
@datacrypt
2 of us tested it in every possible death....Every mob, falling, drowning, lava, pvp, etc.
With and without enchanted gear, single and double chest for each test and never did the gear get lost.
Make sure your players are not lying to get gear, I have caught them doing that so many times with DeathTpPlus. /invsee
FYI I am getting reports that sometimes it is not allowing users to get their armor back... I am testing further to see if I can recreate.
@datacrypt
I didn't still drops in blocked regions.
@LiLChris06
How did you get the chest to not drop in the zones?
Testing it now, working great juust one minor bug I found.
1. Die with full inventory & doublechest perm.
Click sign and receive your items.
Then you get the message "Not all items get recovered..."
And chest does not disappear.
@datacrypt nice meeting you, also yes it does drop a chest in regions that are not permitted to build. This actually effects me too, I have it so if they run to safe zone while fighting and die in that area they don't drop a chest.
It encourages to not run away from battles at the risk of loosing everything. :D
Probably can make the switch tonight though, just worried about safezone chests.
Things I noticed I really like is the /db loc and that armour is priority to go to your chest.
@LiLChris06
Unfortunately, mine is located in a stadium in my main spawn city...
@datacrypt
Hmm, my mob arena is in another world I wonder if I can still use it and just negate the perm.
Will be the test dummy later tonight when I get home. :)
@escortkeel
No. But it runs fine with it enabled. I have made a region with build flag as false and it still seems to place the sign..
http://dev.bukkit.org/server-mods/mobarena/
@datacrypt
Does MobArena use WG for protection?
EDIT: No, it doesn't... I'll see what I can do.
I still seem to have an issue with it placing items in my MobArena... Build permissions are off and arena editing are off... Any idea why it is allowing creation of the grave?
Awesome!
Will do a test run tonight on my Plot server, and if all goes well it will go on my Faction server. :D
Thanks so much again!
@googlebuscus
Images are up! Finally! (dev.bukkit.org went down for a while there)
I'm unable to replicate your teleportation issue using the singlechest chest type. Are there any specific conditions which cause the "sticking" to happen?
When I tp'd to my deathchest (singlechest node) I seem to be stuck inside of the chest. Can't get out of it. Bug?