Download KeepInventory Individual — Minecraft Mods — MetaMods

KeepInventory Individual

Active

Downloads

0

Last update

10 months ago

Versions

1.2.1 — 1.21.4
Server
Game mechanics

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.

About the modification

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

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

Permissions

Main permission nodes:

  • ki.admin.cmd.on - using enable command
  • ki.admin.cmd.off - using disable command
  • ki.admin.cmd.other - managing other players' settings
  • ki.admin.cmd.reload - reloading configuration
  • ki.admin.cmd.list - viewing player list
  • ki.keepxp - preserving experience upon death
  • ki.onjoin.on - automatic enable upon server join
  • ki.onjoin.off - automatic disable upon server join

Configuration Settings

Configuration

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.'
Project members
Niestrat99

Niestrat99

Developer

Created: 26 Dec 2023

ID: 14646