COWMODSКаталог модов

Better Keep Inventory

Keep or drop your inventory when killed by natural sources, mobs or players in PVP (Configurable)

Автор: JustDoom38,3 тыс.60обновлён 31 мая 2025 г.
Механики игрыУправлениеУтилиты

Описание

Better Keep Inventory

Discord X (formerly Twitter) Follow Static Badge GitHub

Better Keep Inventory is a plugin that builds more functionality on top of the "Keep Inventory" gamerule idea. The gamerule is very limited with the only configuration available is enabling/disabling it and having it work in specific worlds. This plugin can handle those scenarios for you and more! Per world configuration and keeping your inventory in specific scenarios such as natural deaths, mob deaths or player deaths. Whether your items are kept or dropped for whatever reason is up to you!

Features

  • Per world configuration
  • Permissions
  • Reloadable config without restarting the server
  • Keep/Drop on PVP, Natural or Mob caused death!
  • Paper and Sponge support

Planned

  • Configurable message on keep inventory
  • Drop/keep only certain items
  • Limited keep inventory uses per specified time/lifetime

Usage

Just install the plugin to your plugins folder for your platform (Paper or Sponge)

A player death is classified as a player other than yourself causing your death, whether it be from a sword, arrow, or hitting off a cliff. As long as Minecraft classifies it as being killed by another player it is labelled a player death in the plugin.

A natural death is when you die from starvation, fall damage, drowning, or from the void. It should cover death from the /kill command too.

A mob death is when you are killed by a hostile mob, creeper, skeleton, spider etc.

Commands

There is one command /betterkeepinventory reload which reloads the config file and applies the changes made. It requires the permission betterkeepinventory.commands. You can also run /bki reload for short.

Permissions

By default, every player will have the keep inventory functionality enabled. To only give it to specific people you can set the option require-permission to true and give only the players you want to have the keep inventory ability the permission betterkeepinventory.keep. To do that you will need a permission plugin like LuckPerms.

Configuration

The Paper plugin uses a .yml file for configuration and the Sponge plugin uses a .json file. For world specific settings the Sponge config needs the full world name such as minecraft:overworld. Default world names are also different between Paper and Sponge

# NOTE: DO NOT HAVE THE KEEP INVENTORY GAMERULE ENABLED WITH THIS PLUGIN

# Global default settings that affect all worlds. Set all of them to false for vanilla functionality (No keep inventory)

# "keep" refers to what should be kept when the player dies which is not configurable

# Should the permission "betterkeepinventory.keep" be required for a player to "keep" on death
# If false everyone will "keep"
require-permission: false
# Should the player "keep" when killed by another player
keep-on-player-death: false
# Should the player "keep" on a natural death. Fall damage, starving, drowning etc
keep-on-natural-death: true
# Should the player "keep" when killed by a mob
keep-on-mob-death: true
# Should the player "keep" if they commited suicide. With arrows, end crystal etc
keep-on-suicide: false

# "keep" settings

# When the player dies should their inventory be kept
keep-inventory-items-on-death: true
# When the player dies should their EXP level be kept.
# The higher level you are the more EXP needed to level up so dying with 10 levels and 50% keep EXP will not respawn the player with 5 levels
# The value can also be a number from 0 to 1, with 1 meaning that all EXP is kept and 0 is none
# 0.5 - Keeps only half the EXP
keep-exp-on-death: 1.0

# World specific settings. These will override the above global settings for the specified world
worlds:
  # The name of the world
  world:
    # Should these settings override the global ones. Set to false to disable the override
    enabled: false
    require-permission: false
    keep-on-killed-by-player: false
    keep-on-natural-death: true
    keep-on-mob-death: true
    keep-inventory-items-on-death: true
    keep-exp-on-death: 0.5
  world_nether:
    enabled: false
    require-permission: true
    keep-on-killed-by-player: false
    keep-inventory-items-on-death: true
    keep-exp-on-death: 1.0
    # The "keep-on-natural-death" and "keep-on-mob-death" options have been left out. These two will default to the global
    # defaults set at the top of the file while the other settings that are specified will have whatever option is set
    # above inside the world section
Example for only keeping your inventory in the nether no matter what
require-permission: false
keep-on-player-death: false
keep-on-natural-death: false
keep-on-mob-death: false
keep-on-suicide: false
keep-inventory-items-on-death: true
keep-exp-on-death: 1.0

worlds:
  world_nether:
    enabled: true
    require-permission: false
    keep-on-killed-by-player: true
    keep-on-natural-death: true
    keep-on-mob-death: true
    keep-on-suicide: false
    keep-inventory-items-on-death: true
    keep-exp-on-death: 1.0

Support

Support can be provided on my discord server or you can report any bugs on the GitHub repository here

If you need a new server check out our partner lagless.gg

Lagless Use code Dinonuggies for 20% off!

Последние версии

Все версии →
release

BetterKeepInventory Paper v2.1.1

2.1.1
31 мая 2025 г.19,7 тыс.Minecraft: 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 1.21.10, 1.21.11, 26.1, 26.1.1, 26.1.2, 26.2, 26.3paper, purpur
Скачать
Что нового
Changed - Now use the Minecraft combat tracker for player combat tracking for the `keep-on-player-death` option. This does result in 1.21.4 support being dropped as the feature only exists in 1.21.5 Paper
release

BetterKeepInventory Paper v2.1.0

2.1.0
15 мая 2025 г.1,6 тыс.Minecraft: 1.21.4, 1.21.5, 1.21.6paper, purpur
Скачать
Что нового
I recommend deleting and regenerating the config file for the updated comments on the new options. Take a backup of the old config to copy back into the new one. Added - Config option `keep-on-suicide` which checks if the player killed themself, bow and arrow, end crystal etc - Config options that separate keeping inventory and EXP - EXP option supports keeping only a percentage of EXP
release

BetterKeepInventory Sponge v2.0.1

Sponge-2.0.1
3 мая 2025 г.108Minecraft: 1.21.4sponge
Скачать
Что нового
Fixed - Reload command not sending warnings to player - No longer exiting the whole program if the config fails to load 💀
release

BetterKeepInventory Paper v2.0.1

Paper-2.0.1
3 мая 2025 г.456Minecraft: 1.21.4, 1.21.5paper, purpur
Скачать
Что нового
Fixed - bStats error on startup
release

BetterKeepInventory Sponge v2.0.0

Sponge-2.0.0
2 мая 2025 г.72Minecraft: 1.21.4sponge
Скачать
Что нового
Sponge support!? Along with the 2.0.0 release I decided to start support Sponge as well!
release

BetterKeepInventory Paper v2.0.0

Paper-2.0.0
2 мая 2025 г.142Minecraft: 1.21.4, 1.21.5paper, purpur
Скачать
Что нового
A 2.0.0 plugin rewrite?! I was bored and decided to rewrite the plugin and make it better. Has all the same feature functionality as the last version but is more configurable. The old config will not work and you will need to regenerate it. It has the same functionality as the last one but I have now dropped legacy support and it now requires at least PaperMC to run, it will no longer work on just Bukkit or Spigot servers. Which in 2025 why are you still using. If you are for some reason using them, staying on 1.X.X versions is fine.
release

BetterKeepInventory v1.0.4

1.0.4
18 дек. 2024 г.7,8 тыс.Minecraft: 1.7.10, 1.8, 1.8.1, 1.8.2, 1.8.3, 1.8.4, 1.8.5, 1.8.6, 1.8.7, 1.8.8, 1.8.9, 1.9, 1.9.1, 1.9.2, 1.9.3, 1.9.4, 1.10, 1.10.1, 1.10.2, 1.11, 1.11.1, 1.11.2, 1.12, 1.12.1, 1.12.2, 1.13, 1.13.1, 1.13.2, 1.14, 1.14.1, 1.14.2, 1.14.3, 1.14.4, 1.15, 1.15.1, 1.15.2, 1.16, 1.16.1, 1.16.2, 1.16.3, 1.16.4, 1.16.5, 1.17, 1.17.1, 1.18, 1.18.1, 1.18.2, 1.19, 1.19.1, 1.19.2, 1.19.3, 1.19.4, 1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6, 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5bukkit, paper, purpur, spigot
Скачать
Что нового
Added - `reverse` config option that reverses functionality so inventories are kept in player combat but not from natural causes
release

BKI v1.0.3

1.0.3
16 сент. 2024 г.1,9 тыс.Minecraft: 1.7.2, 1.7.3, 1.7.4, 1.7.5, 1.7.6, 1.7.7, 1.7.8, 1.7.9, 1.7.10, 1.8, 1.8.1, 1.8.2, 1.8.3, 1.8.4, 1.8.5, 1.8.6, 1.8.7, 1.8.8, 1.8.9, 1.9, 1.9.1, 1.9.2, 1.9.3, 1.9.4, 1.10, 1.10.1, 1.10.2, 1.11, 1.11.1, 1.11.2, 1.12, 1.12.1, 1.12.2, 1.13, 1.13.1, 1.13.2, 1.14, 1.14.1, 1.14.2, 1.14.3, 1.14.4, 1.15, 1.15.1, 1.15.2, 1.16, 1.16.1, 1.16.2, 1.16.3, 1.16.4, 1.16.5, 1.17, 1.17.1, 1.18, 1.18.1, 1.18.2, 1.19, 1.19.1, 1.19.2, 1.19.3, 1.19.4, 1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6, 1.21, 1.21.1bukkit, paper, purpur, spigot
Скачать
Что нового
Added - Support for [BetterReload](https://modrinth.com/plugin/betterreload)! - New option `only-in-specific-worlds` for toggling if this only takes affect in specific worlds or all worlds
release

BKI - 1.0.2

1.0.2
15 нояб. 2022 г.5,8 тыс.Minecraft: 1.7.2, 1.7.3, 1.7.4, 1.7.5, 1.7.6, 1.7.7, 1.7.8, 1.7.9, 1.7.10, 1.8, 1.8.1, 1.8.2, 1.8.3, 1.8.4, 1.8.5, 1.8.6, 1.8.7, 1.8.8, 1.8.9, 1.9, 1.9.1, 1.9.2, 1.9.3, 1.9.4, 1.10, 1.10.1, 1.10.2, 1.11, 1.11.1, 1.11.2, 1.12, 1.12.1, 1.12.2, 1.13, 1.13.1, 1.13.2, 1.14, 1.14.1, 1.14.2, 1.14.3, 1.14.4, 1.15, 1.15.1, 1.15.2, 1.16, 1.16.1, 1.16.2, 1.16.3, 1.16.4, 1.16.5, 1.17, 1.17.1, 1.18, 1.18.1, 1.18.2, 1.19, 1.19.1, 1.19.2, 1.19.3, 1.19.4, 1.20, 1.20.1bukkit, paper, purpur, spigot
Скачать
Что нового
Quick recode - Fixed EXP dropping - Added a permission option to config to require a permission for the keep inventory. If enabled permission is `betterkeepinventory.keep` - Reload command changed to `betterkeepinventory reload` - Added base permission for all commands (Only reload at this point) `betterkeepinventory.commands`
release

1.0.1 - Fix

1.0.1
13 нояб. 2022 г.656Minecraft: 1.7.10, 1.8, 1.8.1, 1.8.2, 1.8.3, 1.8.4, 1.8.5, 1.8.6, 1.8.7, 1.8.8, 1.8.9, 1.9, 1.9.1, 1.9.2, 1.9.3, 1.9.4, 1.10, 1.10.1, 1.10.2, 1.11, 1.11.1, 1.11.2, 1.12, 1.12.1, 1.12.2, 1.13, 1.13.1, 1.13.2, 1.14, 1.14.1, 1.14.2, 1.14.3, 1.14.4, 1.15, 1.15.1, 1.15.2, 1.16, 1.16.1, 1.16.2, 1.16.3, 1.16.4, 1.16.5, 1.17, 1.17.1, 1.18, 1.18.1, 1.18.2, 1.19, 1.19.1, 1.19.2bukkit, paper, purpur, spigot
Скачать
Что нового
Fixed issue with command permission