Saves items from a players inventory when they die and restores them when they respawn. These items are removed from the player's corpse to prevent item duplication.
All permissions are linked to a loss percentage profile. By default, players will not have any permission to use this plugin. You will need to grant one of the permissions provided or create your own.
When creating a new permission, name it must begin with "restoreupondeath."
When creating a new permission, the profile must contain all 3 container types.
"Give default items upon respawn if the players is having items restored" - This will remove the default items (Rock and Torch) when a player respawns if they have items waiting to be restored
"Can drop active item on death" - Setting this to false will prevent the player from dropping the item in their hands when they die or get downed
"Can drop backpack on death" - Setting this to false will prevent the player from dropping their vanilla backpack when they die or get downed
"Don't restore items if player commited suicide" - Setting this to true will prevent the player items from being restored when they die from suicide damage. Enable with caution, as there are multiple sources of suicide damage in the game. This also doesn't account for self-inflicted damage, so players may be able to bypass this.
"Percentage of total items lost (Permission Name | Percentage)" - This is a list of permissions and the loss percentage associated with it.For each permission you can customise the percentage of loss for each container type. For example, if you only want the players to keep items on their belt you would specify a loss percentage of 0 to the belt container, and 100 for the other containers as demonstrated in the "restoreupondeath.beltonly" permission.
Setting a loss value to 0 will result in no items lost, and setting a loss value to 100 will result in 100% of items lost.
Permissions
This plugin uses the permission system. To assign a permission, use oxide.grant <user or group> <name or steam id> <permission>. To remove a permission, use oxide.revoke <user or group> <name or steam id> <permission>.All permissions are linked to a loss percentage profile. By default, players will not have any permission to use this plugin. You will need to grant one of the permissions provided or create your own.
When creating a new permission, name it must begin with "restoreupondeath."
When creating a new permission, the profile must contain all 3 container types.
Configuration
The settings and options can be configured in the RestoreUponDeath file under the config directory. The use of an editor and validator is recommended to avoid formatting issues and syntax errors."Give default items upon respawn if the players is having items restored" - This will remove the default items (Rock and Torch) when a player respawns if they have items waiting to be restored
"Can drop active item on death" - Setting this to false will prevent the player from dropping the item in their hands when they die or get downed
"Can drop backpack on death" - Setting this to false will prevent the player from dropping their vanilla backpack when they die or get downed
"Don't restore items if player commited suicide" - Setting this to true will prevent the player items from being restored when they die from suicide damage. Enable with caution, as there are multiple sources of suicide damage in the game. This also doesn't account for self-inflicted damage, so players may be able to bypass this.
"Percentage of total items lost (Permission Name | Percentage)" - This is a list of permissions and the loss percentage associated with it.For each permission you can customise the percentage of loss for each container type. For example, if you only want the players to keep items on their belt you would specify a loss percentage of 0 to the belt container, and 100 for the other containers as demonstrated in the "restoreupondeath.beltonly" permission.
Setting a loss value to 0 will result in no items lost, and setting a loss value to 100 will result in 100% of items lost.