If you have older version, please update to v1.2. It fixes all issues with commands. The new version is safe to use on public servers.
- Native Minecraft Version:
- 1.16
- Tested Minecraft Versions:
- 1.16
I wanted this functionality for my server with my friends, and since I didn't find anything on the internet, I made it myself.
It's very simple - this plugin overrides player death event and checks if keepInventory is enabled. If keepInventory = true, nothing happens, otherwise the plugin ensures you won't lose any items or EXP on death.
This plugin works even on player-related deaths, for example "PLAYER1 burned to crisp while trying to run away from PLAYER2."
Commands:
/safepvp enable
/safepvp disable
I will update this plugin when 1.17 comes out
If there are any bugs, do let me know, but I hope it works as intended.

SafePvP (keepInventory on PvP deaths) 1.2.5
Prevents players from losing items after dying in PvP
Recent Updates
- A minor hotfix (fixed a stacktrace in console) Feb 3, 2021
- 1.2 Update Feb 3, 2021