HomeJavaModsDynamicKeepInv
DynamicKeepInv

DynamicKeepInv

Java Server License

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.


Why use DynamicKeepInv?

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:


Key Features

Time-Based Rules

Advanced Death Rules

Economy & Death GUI

Player Statistics

Plugin Integrations


Logic Hierarchy

When a player dies, the plugin decides whether to keep or drop items based on this priority order (highest to lowest):

  1. Bypass Permission (dynamickeepinv.bypass)
    • If player has this permission, they always keep items.
  2. Claim Protection (Lands / GriefPrevention)
    • Is the player in their own claim? Use claim settings.
  3. Death Cause (PvP / PvE)
    • Did another player kill them? Use PvP settings.
  4. Wilderness Settings
    • If enabled, use specific settings for unclaimed land.
  5. Time-Based (Day / Night)
    • Fallback: Is it currently Day or Night?

Installation

  1. Download the latest JAR from the Releases page.
  2. Place it into your server's plugins/ folder.
  3. (Optional) Install Vault and an Economy plugin for paid features.
  4. Restart the server.

Commands & Permissions

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:


Configuration

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

Placeholders

Requires PlaceholderAPI.


License

This project is licensed under the Apache 2.0 License.


Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more