This guide will show you how to enable the keep inventory on the death option on your server. To do so, we will use a gamerule.
This will mean that players will not lose their items when they die. Instead, they will be respawned with them.
Enabling the KeepInventory Gamerule
To keep inventory on death on your server you need to:
- Log in to your Multicraft panel here.
- Click on
Console
.
- Type the following command in the console and press the
Enter
key after:
gamerule keepInventory true
/gamerule keepInventory true
You have successfully enabled the keep inventory on the death option on your server.
Enable KeepInventory for Certain Players
If you want to enable the KeepInventory for certain players you can do so using certain plugins on your server.
If you add the LuckPerms and EssentialsX plugins on your server you will be able to give the KeepInventory only to some people on your server.
The EssentialsX plugin is providing the essentials.keepinv
permission node which you can add as permission for a player or group in LuckPerms. This permission node will enable the KeepInventory only for the player/ group it was added to.
So you can use one of the following commands:
/lp group <group> permission set essentials.keepinv
– to add the KeepInventory permission to an existing group/lp user <user> permission set essentials.keepinv
– to add the KeepInventory permission for one player
This way you can enable the KeepInventory only for a specific player or group of players.