▶️ ЗАБЕРИ СВОИ 8 ПОДАРКОВ 🎁 ПРИ СОЗДАНИИ СВОЕГО МАЙНКРАФТ СЕРВЕРА
Моды/KeepInventory Individual
KeepInventory Individual

KeepInventory Individual

A plugin that makes KeepInventory individual to players.

3.6K
17

About KeepInventory Individual allows you to set KeepInventory for players individually.

This plugin supports MySQL, so that it can save the list of players with KeepInventory enabled, into the Database.

If MySQL is disabled, or no connection is established to it, then the plugin will temporarely store the list into a YAML file, until the connection to a MySQL database is established.

Once connection is established, the plugin will then move the list from the YAML file into the database automatically.

You can also blacklist certain death causes, if you do not want the player to keep their inventory for falling into the void for example. More info about it in the Configs section.

This plugin also has an API, allowing you to use some of it's features in your own projects! Learn more

Commands

Usage: /keepinventory <on/off/reload> (player)

The command itself can only be used by opped players, or players with the appropriate permissions assigned to them.

CommandDescription
/keepinventory on (player)Enables KeepInventory for you or the player mentioned.
/keepinventory off (player)Disables KeepInventory for you or the player mentioned.
/keepinventory reloadReloads the config files.
/keepinventory listShows a list of players with KeepInventory enabled.
/keepinventory helpShows a list of commands for this plugin.

Permissions These are the permission nodes used for the commands.

PermissionUsageDefault
ki.admin.cmd.onUsed for /keepinventory onOpped Players
ki.admin.cmd.offUsed for /keepinventory offOpped Players
ki.admin.cmd.otherUsed for /keepinventory on/off (Player)Opped Players
ki.admin.cmd.reloadUsed for /keepinventory reloadOpped Players
ki.admin.cmd.listUsed for /keepinventory listOpped Players
ki.admin.cmd.helpUsed for /keepinventory helpOpped Players
ki.keepxpPlayers with this permission will keep their experience upon death.Opped Players
ki.onjoin.onPlayers will have KeepInventory enabled by default as soon as they join. Blacklisted worlds will cancel it.Opped Players
ki.onjoin.offPlayers will have KeepInventory disabled by default as soon as they join.Opped Players

Configs

config.yml

# NOTE: When using the blacklist, please make sure to write the causes in caps like this:
# blacklist:
# - VOID
# - EXPLOSION
# ----------------------------------------------------------------------------------------
# If you want to leave the list empty, please enter the list like this:
# blacklist: []
# ----------------------------------------------------------------------------------------
# You can find a list of all damage causes here:
# 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: '&7KeepInventory has been enabled for you by default!'
    disabled: '&7KeepInventory has been disabled for you by default!'
    blacklisted: '&7KeepInventory disabled, because you''re in a blacklisted world!'
  enabled: '&7Successfully enabled KeepInventory for &e{player}&7!'
  disabled: '&7Successfully disabled KeepInventory for &e{player}&7!'
  reload:
    process: '&7Reloading configurations...'
    success: '&7Configurations were 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}.'
  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.'

Support

You don't know how to set something up or found some issues?

You can reach out to me here:

Совместимость

Minecraft: Java Edition

1.21.x1.20.x1.2.x

Платформы

Поддерживаемые окружения

Сервер

Создатели

Детали

Лицензия:GPL-3.0-only
Опубликован:2 года назад
Обновлён:1 год назад
Главная