Individual Keep-Inventory (for Sponge API 7 and Bukkit)
This is a simple plugin I have made, which allows you to set the keepInventory
mechanic in Minecraft in a per-player way.
Server Requirements:
- Java 8;
- If you use a Sponge-based server (SpongeVanilla/SpongeForge/etc…?): This was tested in version 1.12.2 of Minecraft and version 7.3.0 of SpongeVanilla; in theory, as long as your server version supports that API version you should be fine.
- If you use a Bukkit-based server (Craftbukkit/Spigot/Paper/etc…): This was tested in version 1.12.2 of Minecraft; in theory, this should work as far back as 1.8.8 though (and newer versions too).
How to use it?
WARNING: Do NOT set the keepInventory
gamerule to true
in the world, through /gamerule
or any equivalent command (if you have a world management plugin); this plugin won’t work otherwise. If you have already done it, set it to false
.
1 - Install this plugin and a permission management plugin in your server (LuckPerms is what we recommend!);
2 - With the permission management plugin you have installed, give the permission iki.events.playerdeath.keepinventory
to whoever you want.
Examples
Assuming you are using Luckperms:
1 - If you want to give keepInventory
to a specific player or group:
/luckperms user <playername> permission set iki.events.playerdeath.keepinventory true
2 - If you want to give keepInventory
to everyone except a specific player:
/luckperms group default permission set iki.events.playerdeath.keepinventory true
/luckperms user <playername> permission set iki.events.playerdeath.keepinventory false
And there might be other use-cases I could spend 40 more hours covering here.
Data Collection
This plugin uses bStats to collect some analytics data about your server, such as its version, plugin version, location, Java version, and others. This data is completely anonymous; nevertheless, you can disable it in Sponge’s global.conf
(which, by default, is already disabled, so, if you to want support the plugin, please consider turning it on!).