SavageDeathChest
Description:
This plugin stores a player's inventory in a chest on death for later retrieval. It has many options, but configuration and use has been kept as simple as possible.
Features:
- Places a single or double chest at player's death location containing the player's inventory
- Optional sign placement on chest, showing player name and death date
- Configurable list of block types that chests can replace
- WorldGuard, GriefPrevention, PreciousStones and Towny aware, will not place a chest where the player does not have access. Enabled individually.
- Option to check protection plugins on chest access. Enabled individually, disabled by default.
- added WorldGuard 7.0 compatibility.
- Searches a configurable distance from death location to find a suitable chest location
- Optionally require players to have chest(s) in inventory
- Chest protection allows only owners access. Also makes chests explosion proof!
- Optionally allow player's killer to access their chest, for pvp looting.
- Prevent concurrent access to chests when killer looting is enabled.
- Optional quick-loot feature allows one click (sneak-punch) chest looting
- Configurable expiration time for death chests, at which point they will break and drop their contents
- Custom messages and language localization
- Per world enabled in configuration
- Uses sqlite for persistent storage
- Prevents creative mode players from opening death chests
- Optionally prevent players from placing items in death chests
- Optional sound effects!
- A perfect compliment to SavageDeathCompass and SavageGraveyards
Permissions:
Permission | Description | Default |
---|---|---|
deathchest.player |
Default player permissions | true |
deathchest.chest |
Enable death chests for player. | true |
deathchest.loot |
Allows player to quick-loot death chests by sneak-punching. | true |
deathchest.doublechest |
Allows placement of double chests if necessary. | true |
deathchest.admin |
Default administrator permissions | op |
deathchest.freechest |
Overrides require-chest configuration setting. |
op |
deathchest.creative-access |
Overrides creative mode chest opening restriction. | op |
deathchest.loot.other |
Allow player to loot other player's chests. | op |
deathchest.reload |
Allows use of plugin reload command. | op |
deathchest.list |
Allows a user to view a list of their death chests and locations. | op |
deathchest.list.other |
Allows a user to view a list of other players death chests and locations. | op |
Commands:
/deathchest list [username]
Displays a list of player's death chest locations. Requires deathchest.list permission. If a player has permission deathchest.list.other, they can supply a username to list another player's deathchests, or type an asterisk (*) to list all deathchests.
/deathchest reload
Reloads configuration file and messages. Requires deathchest.reload permission, which is child node of deathchest.admin.
/deathchest status
Displays version info and some config settings. Requires deathchest.status permission, which is child node of deathchest.admin.
/deathchest help [command]
Displays a brief help message and command usage.
Installation
Put the jar in your plugins folder and restart your server. Edit the generated configuration file to your liking, then reload the plugin settings with the /deathchest reload
command. No server restart necessary!
Configuration
All configuration changes can be made without needing to restart your server. Just issue the reload command when you are satisfied with your settings in config.yml.
Source
Source code for this plugin is hosted on github and distributed under the GPLv3 license.
https://github.com/tim-savage/SavageDeathChest
This plugin is outstanding. For a long time ive been looking for a Death chest that would work with Arclight, and this is just flawless. Thank you for making it, this plugin is really a godsent.
Hello! Such a problem, in the config require-chest: true. Players rename the chest and they have an infinite death chest, and the chest is not removed from the inventory.
Feature request: Make the location (in chat) clickable.
Very nice. Feature request: hologram over death chest, rather than sign.
In reply to SpigotSlimeDog:
Watch for this feature in an upcoming release.
Hi, many thanks for this plugin which managed to run in 1.17.1 with no worries, I hope it will continue in 1.18 when my server can upgrade for the moment I don't see an error in the server console in 1.18 but I don't have time to test it for the moment. Thank you
I added this plug-in, but no box was generated after death?
All instructions can be used. After I committed suicide,
I entered list, which showed that there was no death record.
I've given permission, but it doesn't generate.
Why?
When someone dies a chest is placed but the items just drop on the floor right where I died. I can't make it so that the items go into that chest when I die.. Someone help?
attempted to use on a 1.15.1 MC spigot version, I get this error message:
Could not pass event PlayerDeathEvent to SavageDeathChest v1.13.3
also it didn't fill out sign on chest, it did capture the items from inventory however my items were duplicated as they were also laying on ground near chest.
Using this on a 1.14.4 Spigot server and it's working great except for the sign generation. The plugin was generating an exception every time someone died. Luckily you can disable the sign in the config. Doing so resolved the issue and the plugin works perfect. I especially love the per-world feature as I was looking for a deathchest mod that did that. Thank you!
Great plugin! We're using this on our server for a long time now, and we really love it. Under Spigot 1.14 it starts up fine, but throws an error everytime someones dies:
https://pastebin.com/24wN8f1U
We're using SavageDeathChest 1.13.3 and SavageDeathCompass 1.13.3 on Spigot 1.14
Thanks in advance for any help you can offer. Cheers!
Hey! I really like your plugin and I think it is the best of its kind. I just have one problem: When I restart the server the chests are gone and have dropped their items. Is there any way you could fix that?
A new version (v.13.3) has been uploaded and will be available upon approval. This version fixes a bug that prevented opening chests by right-clicking the chest itself when placed in a location that was protected by another plugin.
The protection plugin override settings have also been changed to remove ambiguity.
(Changed check-on-place to ignore-on-place and check-on-access to ignore-on-access). Note that this reverses the logic, so previously false settings should now be true and vice versa. I believe this makes the settings intent less confusing. Please backup and remove the config.yml file to allow the plugin to install a new version, then reapply custom settings.
A new version (v1.13.2) has been uploaded. This version fixes a bug that prevents the plugin from loading when a user provided language file is used. It also addresses a bug that prevented player items from being dropped when the require-chest option is enabled but the player does not have a chest in their inventory on death.
A new version (v1.13.1) has been uploaded. This version has been promoted from beta to release version.
The plugin will now consider the world spawn protection radius when placing a death chest, and a message added for circumstances where the spawn protection ultimately prevents a chest from being placed.
Additionally, a placeholder for 'less than one' has been added to the language files.
Please backup and remove the language files to allow new versions with these additions to be installed by the plugin.
Thanks to jmdelisle for bringing the spawn protection issue to my attention.
A new version (1.13.1-beta2) has been uploaded. This version fixes a bug with the list command permissions, and adds a help command. The language files have additional messages, so please backup and remove them to allow the plugin to install new versions. The config.yml and database files have had no changes, and can be retained.
In reply to timsavage:
In reply to jmdelisle:
A new version (1.13.1-beta1) has been uploaded. This version brings many bug fixes, and the often requested list command. Note that the permission node for this command (deathchest.list) is not enabled by default, and needs to be explicitly set for users to be able to list their death chest locations. Administrators can also list other players chest locations by adding a username after the command, or list all players death chests by typing an asterisk (*) after the command. Anyone with the deathchest.admin permission node will have the list permissions by default.
As usual, the config.yml, sound.yml and language files have had updates, and should be backed up and removed to allow the plugin to install the new versions. The database schema has not changed, so existing deatchests.db files can be retained.
In reply to timsavage:
[10:21:08 INFO]: > deathchest.player (true)