-
Notifications
You must be signed in to change notification settings - Fork 0
Advanced Configuration
These settings give you fine-grained control over how and why players keep or lose inventory.
When a player dies, DynamicKeepInv evaluates rules in this order:
1. Bypass Permission
2. First Death Rule
3. Death Streak Rule
4. Protection Integrations
5. Death Cause Rule
6. Time-based Fallback
The first matching rule wins.
rules:
bypass-permission: truePlayers with dynamickeepinv.bypass always keep inventory if this is enabled.
rules:
death-cause:
enabled: true
pvp:
keep-items: true
keep-xp: true
pve:
keep-items: false
keep-xp: truePvP includes direct player kills and player-owned wolves. PvE includes mobs, environment, and command kills.
rules:
first-death:
enabled: true
keep-items: true
keep-xp: trueThis grants a safety net on a player's very first recorded death.
Note: this depends on the stats system. If stats are disabled or unavailable, this rule is skipped.
rules:
streak:
enabled: true
threshold: 3
window-seconds: 300
keep-items: false
keep-xp: false| Setting | Description |
|---|---|
threshold |
Number of deaths required to trigger the rule |
window-seconds |
How long recent deaths stay in the streak window |
keep-items |
Whether items are kept after the threshold |
keep-xp |
Whether XP is kept after the threshold |
This tracking is in-memory and resets on server restart.
integrations:
lands:
enabled: true
override-lands: false
in-own-land:
keep-items: true
keep-xp: true
in-other-land:
keep-items: false
keep-xp: false
wilderness:
enabled: true
use-death-cause: false
keep-items: false
keep-xp: falseoverride-lands: false means Lands can keep controlling its own keepInventory behavior.
integrations:
griefprevention:
enabled: true
in-own-claim:
keep-items: true
keep-xp: true
in-other-claim:
keep-items: false
keep-xp: false
wilderness:
enabled: true
use-death-cause: false
keep-items: false
keep-xp: falsein-own-claim applies when the player owns or is trusted in the claim.
integrations:
worldguard:
enabled: true
in-own-region:
keep-items: true
keep-xp: true
in-other-region:
keep-items: false
keep-xp: false
wilderness:
enabled: false
keep-items: false
keep-xp: falsein-own-region applies when the player is owner/member of the region they died in.
integrations:
towny:
enabled: true
in-own-town:
keep-items: true
keep-xp: true
in-other-town:
keep-items: false
keep-xp: false
wilderness:
enabled: false
keep-items: false
keep-xp: falsein-own-town applies when the player is a resident of the town they died in.
integrations:
gravesx:
enabled: true
axgraves:
enabled: true
graves:
fallback-on-fail: trueIf a player loses items, the plugin attempts to create a grave. If grave creation fails, it logs a warning and falls back to normal item drop behavior.
hooks:
mmoitems:
protected-tags:
- MMOITEMS_SOULBOUND
- MY_CUSTOM_PROTECTED_TAGLeave the list empty to use only the default MMOITEMS_SOULBOUND tag.
Requires Vault and a compatible economy plugin.
economy:
enabled: true
cost: 100.0
mode: "charge-to-keep"| Mode | When charged | If player cannot pay |
|---|---|---|
charge-to-keep |
When the player would keep items | Items are still kept |
charge-to-bypass |
When the player would lose items | Items are lost normally |
gui |
When the player decides in the death GUI | Timeout or drop choice loses items |
economy.mode: "gui" opens a death confirmation GUI after death.
Player commands:
-
/dki confirmreopens the pending GUI -
/dki autopaytoggles automatic payment in GUI mode
Behavior summary:
- Pay: items kept
- Drop: items dropped or sent to a grave
- Timeout: items dropped automatically
- Disconnect: pending death stored until expiry
messages:
death:
enabled: true
chat: true
action-bar: falseThese explain whether items/XP were kept or lost and why.
rules:
day:
keep-items: true
keep-xp: true
night:
keep-items: false
keep-xp: truerules:
death-cause:
enabled: true
pvp:
keep-items: true
keep-xp: true
pve:
keep-items: false
keep-xp: falseintegrations:
lands:
enabled: true
override-lands: false
in-own-land:
keep-items: true
keep-xp: true
in-other-land:
keep-items: true
keep-xp: true
wilderness:
enabled: true
use-death-cause: true
rules:
death-cause:
enabled: true
pvp:
keep-items: true
keep-xp: true
pve:
keep-items: false
keep-xp: trueeconomy:
enabled: true
cost: 500.0
mode: "charge-to-bypass"
rules:
night:
keep-items: false
keep-xp: false