
KeepInventory Individual
Individual Inventory Preservation Settings
The KeepInventory Individual modification provides the ability to configure inventory preservation after death for each player separately, instead of using global server settings.
Database Support
The plugin supports MySQL, allowing it to save the list of players with enabled inventory preservation directly to the database. If MySQL connection is unavailable or disabled, data is temporarily stored in a YAML file until the database connection is restored.
Flexible Death Cause Configuration
You can create blacklists for specific death causes. For example, you can disable inventory preservation when falling into the void or during explosions. Configuration details are available in the settings section.
Management Commands
Main command: /keepinventory <on/off/reload> (player)
Command access is available to server operators or players with appropriate permissions:
/keepinventory on (player)
- enables inventory preservation/keepinventory off (player)
- disables inventory preservation/keepinventory reload
- reloads configuration files/keepinventory list
- shows list of players with enabled preservation/keepinventory help
- displays command help
Permission System
Main permission nodes:
ki.admin.cmd.on
- using enable commandki.admin.cmd.off
- using disable commandki.admin.cmd.other
- managing other players' settingski.admin.cmd.reload
- reloading configurationki.admin.cmd.list
- viewing player listki.keepxp
- preserving experience upon deathki.onjoin.on
- automatic enable upon server joinki.onjoin.off
- automatic disable upon server join
Configuration Settings
config.yml
# NOTE: When using blacklist, specify causes in uppercase:
# blacklist:
# - VOID
# - EXPLOSION
# -------------------------------------------------------------------------------------
# For empty list use format:
# blacklist: []
# -------------------------------------------------------------------------------------
# Full list of damage causes available at:
# https://hub.spigotmc.org/javadocs/spigot/org/bukkit/event/entity/EntityDamageEvent.DamageCause.html
# -------------------------------------------------------------------------------------
world-blacklist:
enabled: false
blacklist: []
deathcause-blacklist:
enabled: false
blacklist: []
mysql:
enabled: false
host: HOST NAME
port: PORT
database: DATABASE NAME
user: USERNAME
password: PASSWORD
debug:
send-on-join-notification: false
enabled: false
messages.yml
info:
on-join:
enabled: '&7Inventory preservation has been enabled for you by default!'
disabled: '&7Inventory preservation has been disabled for you by default!'
blacklisted: '&7Inventory preservation disabled because you are in a blacklisted world!'
enabled: '&7Successfully enabled inventory preservation for &e{player}&7!'
disabled: '&7Successfully disabled inventory preservation for &e{player}&7!'
reload:
process: '&7Reloading configuration...'
success: '&7Configuration successfully reloaded!'
error:
no-permission: '&cYou do not have permission to use this command!'
no-such-player: '&cPlayer &e{player} &cdoes not exist.'
invalid-arguments: '&cInvalid arguments. Usage: &e/keepinventory <on/off/reload> (player)'
not-enough-arguments: '&cNot enough arguments. Usage: &e/keepinventory <on/off/reload> (player)'
already-enabled: '&cIt is already enabled for &e{player}&c.'
already-disabled: '&cIt is already disabled for &e{player}&c.'
empty-list: '&cThe list is empty.'
must-be-number: '&cThe argument must be a number!'
page-out-of-bounds: '&cThe list only goes up to {number} pages.'