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)
@Melekaiah
I agree with this option too. It would be great for PVP servers or servers that want to add a little more strategy to death. But do make it configurable :p
Also, is there a possiblity of an autoloot option that bypasses residence, towny, worldguard and other froms of region protection? Players might have issues opening chests in these such areas (havne't switched to this plugin yet, but I intend to once more features are added :D)
@escortkeel
Thanks! Can't wait to see it!
havent tested but is there an option to make the player have to acutally carry a chest when they die?. for a lil more realisim? :P
I've noticed that 'unlockAfter: -1' is unlocking immediately. Is it correct that this should never unlock?
@escortkeel
A simple (not config, keep it light) sign on top of the death-chest instead of 2 chests would be a good idea. If you click the sign you get your stuff sent to your inventory.
This makes it so much easier for back to back PVP fighting, digging through the chest would get you killed right away.
[NAME ]
[ RIP ]
[ TIME ]
[ DATE ]
Doesn't need this, if it makes it easier just put name
The double chest (not 2) with a permission node if possible.
Only 2 features I am missing before I can go live with it, which I want to soon as possible. :)
Awesome thanks
@Chemical_Datas
@jimm0thy
I think these two problems could be solved in conjunction. If I implement jimm0thy's suggestion, then once players have cleared out their chests they will disappear. Expiration could also be sped up by the implementation of this.
I'll work on all of this now. :)
Nice small, easy to use plugin. The only thing I would ask for is that death chests expire after having been looted
Think that you could make a right click option for the person who died in a protected zone? Like a quick retrival then a removal of a chest? My players are dying in a protected npc town and the chests although neat, are unable to be cleared out by the players.
@luigi_vampa
@arihin
Hmmm. I can see your issue. I'm not sure how to easily get around that though... :( I could always just make the "death chest" a side-by-side double chest, but I like the idea that the chests fill up the location where you died.
@arihin
What options would you like?
@xclucky
@Mortalsinn
Sure! I'll look into this now. :)
I can confirm arihin's error. Dying in the same place is causing errors. I used /suicide stood next to a 'death chest', the single chests joined and became double chests but the chest was then unable to be opened. Tried it for a third time in the same place and the chests from deaths 2 and 3 joined but the first pair vanished. Also, when I move the crosshairs over the blocks that the first pair occupied it displays the thin highlight cube over their positions as if they were there but no visible chests.
Tested a death in a pool of lava too and they were placed buried beneath the lava, any chance of having the chests placed on top of the lava should you die there?
Top work though, simple yet superbly awesome idea! :)
and.. i'm korean, i hope translate your plugins. i wish more customizable options. thanks.
hey, i found bug. you killed same location, will created double box. i can't open double box. never open and destroyed. check plz
@Mortalsinn
I would also like to see a way to teleport to your chest (for a price, vault-compatiable) and also a way to look up the location of your chest and the time remaining. But I love the simplistic nature of this plugin, much better than the over-complicated DeathTPPlus!
I use DeathTPPlus and i've been looking for a smaller more lean plugin to change to. This is almost perfect.
Can you add an option for the user to teleport to his chest consuming an item defined in the config?
@escortkeel
Awesome will give it a try when I get home, won't go live right away as I need to customize a few things and warn my players of the change.
@Folas1337
Doublechest (permission) and deathsign is a nice feature I need as well.
But lets not add 1 million features to this, please!
Keeping it simple is a good thing, cause look at DeathTpPlus, the last recommended version was 649kb, almost as big as Essentials....
http://dev.bukkit.org/server-mods/deathtpplus/files/34-death-tp-plus-v-3-9-16-2320/
I was using the dev builds which became smaller.
@S1lverK3y
That was released a few days after I requested it here - http://forums.bukkit.org/threads/deathchests.120678/
Not sure if it was in favor of my request or not but at the time it didn't exist. :p
3kb only, nice...its missing a few features. Glad to see we have many more options for such a plugin now.
@Folas1337
@LiLChris06
The initial version has been released! :D You can grab it here!
@S1lverK3y
This plugin has more features (such as lockout) and is more configurable.
Other DeathChest Plugins are out of date?
............
..................
........
http://dev.bukkit.org/server-mods/death-loot/
.....
@LiLChris06
np! :D
@Folas1337
Sounds great! :)