DeadChest
Ultimate solution to protect inventory on death
For the full chest experience, use Deadchest with Lootbox!
Keep a player's inventory in a chest (deadchest) when he dies. Deadchest is placed at the location where the player dies with a holographic text with the owner and a timer of remaining time before the chest disappear ! When the timer end, the chest is destroy with all the content in it.
You can edit duration of deadchests, you can also make chest with no timer (Infinity chest). Chest can be private (only the owner of the deadchest can open it or an admin) or public (anyone can open it and get the content).
Keep a player's inventory in a chest when he dies.
- All the inventory is save ( Armor too ! )
- Chest appear at the location who the player die
- All type of world supported (classic world, nether, end...)
- NEW : XP storage
- Holographic display of player owner and remaining time
- Unlimited players and unlimited chests
- Choose chest or player heads
- Permissions
- World management
- Items management
- Worldguard support
- Gamemode management
- Grief protection ( destroy / explosion)
- Complete plugin documentation
- Log system of each deadchest event. Players will not be able to lie to you.
- Compatible with Citizens 2
- Work on 1.13.2 ,1.14.x, 1.15.x ,1.16.x, 1.17, 1.18.X, 1.19.x and 1.20 !
- Highly customizable :
- Chest duration
- Chest access
- Holographic content
- Colors
- Chest griefable (yes/no)
- Number of chest per player
- Language
- Drop
- And many more !
Since version 4.5.0, DeadChest use bStats to collect anonymous data to make statistics for the plugin.
Your Deadchests are FULLY customizable !
Command | Description | Permission |
/dc reload |
Reload the plugin |
deadchest.admin |
/dc remove |
Remove all deadchests of the current player |
deadchest.remove.own |
/dc remove (PlayerName) |
Remove all deadchests of a player |
deadchest.remove.other |
/dc removeinfinite |
Remove all infiny chest |
deadchest.admin |
/dc removeall |
Remove all deadchests |
deadchest.admin |
/dc list |
List all deadchest of the current player |
deadchest.list.own |
/dc list all |
List all deadchest |
deadchest.list.other |
/dc list (PlayerName) |
List all deadchest of a player |
deadchest.list.other |
/dc giveBack (PlayerName) |
Return the oldest deadchest inventory of a player to him |
deadchest.giveBack |
deadchest.generate : Allow a player to generate deadchests
deadchest.chestPass : Allow a player to get all deadchests
deadchest.infinityChest : Allow a player to have a infinity chest
First installation
Just drag and drop DeadChest.jar to your plugins file and launch your server. In the plugin/deadchest folder you will find 3 files :
-
config.yml : File to edit the configuration of the plugin (you should open it and put the params you want !)
-
locale.yml : Langage file, english by default, you can edit this file to the langage you want
-
chestData.yml : Do not open or edit this file, it's here that all data about the plugin is stored.
-
deadchest.log : Track all Deadchest events here.
Please read the FAQ if you have any trouble. If you find any issue, please report it on Github or Discord
You will find below the list of all my plugins. They are all updated with the latest version and try to offer you the best experience possible.
- SpawnerSilk : Mine spawners with silk touch.
- DeadChest : Keep your inventory in a chest when you die
- Cryweather : Manage time easily
- RedStoneMe : Activate redstone with your presence
- MendingEnchant : Allow you to have mending with your enchant table
- MobsManager : Manage which mobs can spawn on your server or not
- CreatureCapture : Capture any creatures you see with a special bow
I’ve noticed that when players die with an item enchanted with Curse of Vanishing in their inventory, that item is kept in their dead chest. This enchantment is supposed to cause the item to disappear on death instead of dropping, but DeadChests nullifies that.
Could you please implement a check for items with Curse of Vanishing and delete them from the player’s inventory when they die so they don’t get put in the dead chest? That’d be fantastic! 🙂
In reply to Forge_User_49840962:
Oh yes good idea, indeed I never thought about it before. That will be pushed in the version 3.1 of the plugin !
In reply to crylonz:
Fantastic! Thank you.
great, I expected this update
I see that you mentioned the changes with the v3.0 update. Any word on when that will come out? The chest per world permission is a dealbreaker not to have for me so for now I'm against implementing this on my server. Otherwise. the rest of the functions seem to work great!
In reply to oegglordo:
The version 3.0 just come out ! I just updated the project page. Chest per world permission ? There is nothing like that. The feature with world allow admin to exclude some worlds for the plugin, that's all ! :)
In reply to crylonz:
Hey sorry. For some reason I was on the 2.8 page. Thanks for the update and the plugin!
Hey, I just have a few questions about the plugin:
• What happens when a dead chest expires? Does it disappear or drop its contents? I assume it disappears since otherwise, that’d give the player another five minutes to get their items back.
• What happens if a player dies but has reached the maximum dead chest limit? Does the oldest dead chest disappear, and does it contents drop or disappear along with the chest?
• Does the holographic timer not appear over dead chests if a player has the deadchest.infinityChest permission? Someone whose dead chests never disappear shouldn’t have a timer above their dead chests.
• Why does the image with the permissions on this page say that the default for deadchest.keepInventory is true? Doesn’t that permission let you keep everything you had without a dead chest spawning just like the vanilla keepInventroy gamerule? So why would the default value be true?
Also, I have a suggestion for the plugin: Could you please add a config option to blacklist or whitelist worlds where DeadChest is enabled in? On my server (which isn’t public yet), I want players to only have a dead chest spawn when they die in some of the worlds, so I would like to disable dead chests spawning in the rest of the worlds. If you’d add this feature, that would be absolutely phenomenal!
In reply to Forge_User_49840962:
Hey,
I'm really happy to tell you that I finished few hours ago the version 3.0 of the plugin. In this version I have made lot of things. Your request feature will be in this new version (in config file you can add excluded worlds. I also change the permission deadchest.keepInventory to deadchest.generate. This permission will be set to false by default. In the config file, I added an option RequirePermissionToGenerate set to false by default. That mean that if RequirePermissionToGenerate is false, everybody can generate deadchest without permission, if it's false only player with deadchest.generate can generate deadchest on death.
I give you the changelog of the 3.0 version wich will available when the Bukkit staff will validate the plugin file.
+ Add option to DeadChestDuration. 0 = infiny chest duration
+ Add option to maxDeadChestPerPlayer. 0 = infiny chests
+ Add command /dc removeinfinate to remove all infiny chest (deadchest.admin)
+ Add command /dc removeall to remove all deadchests (deadchest.admin)
+ Add command /dc remove <Player> all deadchests of a player (deadchest.remove.other)
+ Add command /dc remove to remove all deadchest of the current player (deadchest.remove.own)
+ Add permission deadchest.remove.own
+ Add option RequirePermissionToGenerate to choose if players need permission to use DeadChest
+ Add option RequirePermissionToListOwn to choose if players need permission to list their dead chests
+ Add permission deadchest.list.own for /dc list
+ Add option AutocleanupOnStart to remove all existing deadchests on startup
+ Add command /dc list <all/Player> to display deadchests of all or a specific player (deadchest.list.other)
+ Add a new config file (locale.yml) . You can edit text of the plugin to the langage you want
+ A new option to disable DeadChest on certain worlds
+ Massive code rewrite
+ Performance optimization
+ deadchest.keepInventory permission change to deadchest.generate
+ /dcinfo change to /dc list
+ Upgrade of config.yml file to be more friendly
If you don't want to wait to have this last version, please send me a PM, I will give you the jar file. I can also help you to deploy the plugin on your server.
Crylonz.
In reply to crylonz:
Oh wow, that’s great news! Thank you so much for such a thorough response. Version 3.0 sounds great!
I know you just finished a big update and all, but another feature that I would love to see in a future version of the plugin would be the behaviour that I described in my original comment where if a player has reached their maximum dead chests and then dies, a new dead chest will be generated and the oldest one will be deleted, along with its contents, so that the player doesn’t have to work hard to return to the points of their death if they don’t want to. That’d be a great config option to have, although it’s not super necessary, so I understand if you decide not to add it.
Thanks again for the response and update. Excluded worlds are going to be excellent! That’s exactly what I needed for my server. I’ll update as soon as it’s available. I don’t need the JAR early as my server isn’t even public quite yet.
In reply to Forge_User_49840962:
I added your idea in the to-do list for futur update ! Thanks for your feedback !
I love the plugin, but I encountered a bug where I would open my death chest but the text above it would still remain, and I wouldn’t be able to place anything in the space where the chest normally would be.
I’m playing 1.15.1 (PaperMC).
In reply to Forge_User_49840962:
Hi, sorry that you experience an issue with the plugin, but don't worry there is a easy fix for that, just type /dc repair next to the corrupted chest. You must be OP or have the deadchest.admin permission.
In reply to crylonz:
All right, thank you!
what do the specific permissions do i need to assign for deadchest? the wiki page only lists a few of them:
- deadchest.admin (obviously admin/all)
- deadchest.chestpass ???
- deadchest.infinychest (no time-limit chest, noted in wiki)
- deadchest.keepinventory (applies keepinventory gamerule to player, in wiki)
what permission do i need to give (if any) to a standard player?
Thank you.
In reply to leasoncre:
- deadchest.chestpass : Allow a player to open all deadchests. If another player die , the player with this permission can open the chest of him.
For standard player you just have to put : deadchest.keepinventory but this permission is already enable by default.
If you think that my permission are not clear. I'm open to suggestion to improve the system.
In reply to crylonz:
I have a few ideas, though not integral to the plugin's current functionality.
1a. While not required, a permission node node like 'deadchest.generate' that would be assigned to players to allow them to use the deadchest plugin's benefit (right now there is no general 'use' permission that i see, and everyone gets/generates a deadchest on death. not a big deal, but could be useful in some situations) -
1b. +config setting: RequirePermissionToGenerate: false (default to no permission node needed to generate deadchest(s)) - this would also allow the use of the -negative- permission usage to negate generating chests when desired. (good for some regions where this would make a mess)
PS. The 'deadchest.KeepInventory' node reads to me like the vanilla 'gamerule keepinvenetory true' setting, which i would think would /NOT/ generate a chest and just keep the inventory on the player at respawn. - is this correct? (or is it more like 'deadchest.generate' i noted above? - if so, it's a bit confusing)
2. command to clear infinate chests /dc removeinfinate - clears only deadchest blocks that are infinate (not despawnable) - great for cleaning up messy admin deaths (deadchest.admin)
3. command to clear all chests /dc removeall - clears All deadchest blocks in world and clears database file (deathchest.admin)
4a. command to clear specific player's deadchests /dc remove [player] - clears all deadchests that x player may have, reguardless of time status (good for cleaning up a single user's mess)
4b. deadchest.remove.own - permission to use the command /dc remove to remove one's own chests. (good for players if deathchests is set to a long despawn time and they don't need them anymore)
4.c deadchest.remove.other - permission to use /dc remove <player> - usually admin command, but might be useful for mods with less access rights
5a. /dc list - list of co-ords, and distance to your own death chests and remaining time before despawn deadchest.list.own - player use (page functionality recommended, default config PermissionRequiredToListOwn: false /no perm needed)
5b. /dc list <player/all> lists deathchests for x player or all deathchests deadchest.list.other - admin/mod use (page functionality recommended)
6a. deathchest.group.<name> - custom despawn times for different custom groups. (permision node must be assigned, greatest time is used if multiple assigned)
(this one would be nice for a much later version #extra features)
6b. config example:
CustomGroups:
- admin: (would be deathchest.group.admin)
- despawn: (24 hours value)
- vip:
- despawn: (6 hours value)
7. Auto Cleanup functionality: config/command(#3)
AutocleanupOnStart: false - cleans deathchests blocks and database on server start
AutocleanupInterval: 0 - cleans chests older than x time - 0=not enabled, x time in (minutes?), this would clean up infinity chests, or chests that use a time greater than the default. (math? time remaining - time to cleanup)
8. i like the beacon idea below, but maybe require an item or command to enable it?
8a: use the beacon effect from the end gateway portal? (diff color?) right
Config ex/idea/thoughts:
BeaconEffect:
#you must be within this block-distance to activate the beacon effect
- MaxDistance: 50
#Cooldown in ticks to prevent command/item click spamming
- Cooldown: 20
- Item:
#Enable/Disable use of shift-right-clicking with item
- Enabled: true
#Permission Node: deathchest.beacon.item
- PermissionRequired: false
#define item required to pulse/activate beacon, reccomend supporting using metadata, Give respawn's player an item to activate beacon? (exclude item from creating a deathchest if only item, and do not include in deathchests, item removed when all deathchests are recovered/removed) ie: feather{lore:Find my stuff}
- Item: DIRT_BLOCK
#/dc beacon, deathchest.beacon.cmd
- Command:
- Enabled: true
- PermissionRequired: false
- Messages:
- NotInRange: 'You are not close enough to activate the beacon'
- InRange: 'Beacon Activated'
#primarily for the command, if item use is disabled, it wouldn't do anything anyway)
- NoPerms: 'You do not have permission to use that'
#second line that follows InRange/NotInRange messages:
- NearestChest: 'Nearest chest is at %x%, %y%, %z%, %dist% away.'
- NoDeathChests: ' You don''t have any DeathChests to recover.'
PPS/note: Add permissions nodes and description section to plugin description :) -oh wait.. it's a giant image. derpz >< ... though a text version [spoiler section?] would be nice to copy-paste nodes (and searchable on page with ctrl+f).
Thank you. stay awesome!
In reply to leasoncre:
Wow ! I will look a this to make the plugin better ! Thanks to take the time to write this message. Please let me some time, I will try to add your idea to the plugin.
Thanks again !
In reply to leasoncre:
Hi,
Version 3.0 of the plugin is now released, I added most of your suggestions. I want to say you a special thanks, your message helped me a lot to make the 3.0.
Hey bro great plugin!
Can you add beacon on deathchest ? And it would dissapear if u destroy it... Visible for everyone!
Great plugin again thanks for the time !
Cya !