Dynamically controls keepInventory based on day/night cycle, protection plugins, and death causes.
DynamicKeepInv is a sophisticated plugin that revolutionizes how the keepInventory gamerule works on Minecraft servers. Instead of a simple global toggle, it dynamically controls inventory loss based on in-game time, death causes, territory protection, and economy.
It is designed for modern servers (1.20.4+) and features full native support for Folia region threading.
Vanilla Minecraft forces server administrators to choose between "Too Easy" (keepInventory true) or "Too Hard" (keepInventory false).
DynamicKeepInv bridges this gap by offering a configurable balance:
dynamickeepinv.bypass never lose items./dki autopay to automatically deduct the fee and skip the GUI./dki stats to view:When a player dies, the plugin decides whether to keep or drop items based on this priority order (highest to lowest):
dynamickeepinv.bypass)plugins/ folder.| Command | Permission | Description |
|---|---|---|
/dki status |
dynamickeepinv.admin |
View current status (Time, World, Enabled). |
/dki reload |
dynamickeepinv.admin |
Reload configuration and messages. |
/dki toggle |
dynamickeepinv.admin |
Toggle the plugin on/off globally. |
/dki stats [player] |
dynamickeepinv.stats |
View death statistics GUI. |
/dki confirm |
dynamickeepinv.use |
Re-open the Death Confirmation GUI (if pending). |
/dki autopay |
dynamickeepinv.use |
Toggle auto-payment mode. |
Other Permissions:
dynamickeepinv.bypass: User always keeps inventory.dynamickeepinv.stats.others: View other players' stats.A snippet of config.yml demonstrating the advanced economy mode:
advanced:
enabled: true
# Economy Settings
economy:
enabled: true
cost: 100.0
mode: "gui" # Options: charge-to-keep, charge-to-bypass, gui
gui:
timeout: 30 # Seconds to decide
expire-time: 300 # Seconds to save data on disconnect
# Death Cause Rules
death-cause:
enabled: true
pvp:
keep-items: false
keep-xp: false
pve:
keep-items: true
keep-xp: true
Requires PlaceholderAPI.
%dynamickeepinv_isday% - Returns true or false.%dynamickeepinv_period% - Returns "Day" or "Night".%dynamickeepinv_stats_save_rate% - Player's save percentage.%dynamickeepinv_economy_cost% - Current death cost.This project is licensed under the Apache 2.0 License.