
DeathChest999
Death Chests - A plugin that leaves a chest containing all your items when you die, announces your death coordinates in chat, and automatically removes the chest after a customizable time period
Список изменений
✅ Bug Fixes
Fixed item duplication on death:
Moved event.getDrops().clear() to occur immediately after copying the drops, ensuring items no longer drop both on ground and in chest.
➕ New Features
Automatic double chest creation:
If there are too many items to fit in one chest, the plugin will now attempt to place a second chest adjacent to the first to form a double chest.
If no adjacent space is available, overflow items are dropped naturally.
Chest locking system:
Added lock timer (lock-duration) that prevents other players from opening a death chest for a set time.
Owners can access their chest immediately.
Non-owners are shown a countdown of remaining lock time if they try to open it early.
Owner tracking:
Each chest now saves the UUID of the player who died.
Used to enforce the locking mechanism per player.
Persistent lock + timestamp storage:
Death chests now store the time of creation (timestamp) to calculate remaining lock duration across server restarts.
Double chest restoration:
Both main and secondary chest locations are saved and restored if the plugin or server restarts before chest removal.
New commands:
/dc999 lock_duration
