
This plugin keep inventory during lag from either low tps or high ping for specific player when they die.
So for example if set tps is 15 in config and server tps was lagging and low on 12tps and a player dies then their inventory is kept and will not drop.
Same thing for the ping, however keep in mind players may abuse this like using programs to raise their ping to escape combat logging.
As this plugin will mostly IGNORE combat drop and will keep it regardless. And will mostly try to ignore any custom inventory plugins and will keep regardless when conditions met.
this was tested on combatlogx and indeed it kept player's inventory when player's ping is high when they logged out so disable this option if your worried about this.
There is also a grace period after lag "can be configured" this mostly to prevent players dying after lag ends as because players die after lag.
This plugin is recommended as it will reduce frustrations of players especially when your sever lags even if you enabled only TPS inventory protection.
Notes/ Keep in mind. 1 Works from 1.16 up to latest version tested 1.21.4, 1.21.1, 1.18.2, 1.17, 1.16
2 The plugin is generally lightweight than other plugins like combat plugins
3 However the more people in server die the more resources it will take, here are some estimations calculations of resources
4 the plugin works below 1.16 but not properly and maybe buggy (not recommended)
Paper 1.20.4 server with 4GB RAM and a 4-core CPU as an example Performance vs Player Count Players CPU Usage (Avg) Memory Usage Death Events/Min Notes 20 0.5-1% 2-5MB 5-10 Barely noticeable 50 1-2% 5-10MB 15-30 Minimal impact 100 2-3% 10-15MB 30-60 Starts showing in timings 200 4-5% 20-25MB 60-120 same thing as above, however will be noted in next versions for optimizations
Config.yml
# Configuration for InventoryProtect
# TPS threshold (1m average) below which inventory is kept
tps-threshold: 15.0
# Ping threshold (ms) above which inventory is kept
ping-threshold: 400
# Grace period in seconds after recovery
# time after that inventory will still be saved even after lag
# this to prevent players get jump scared after lag, most players usually die after lag
grace-period: 7
# Enable protection types
# whenever keep inventory based either tps or ping, you can disable one or both of them
enable-tps-protection: true
enable-ping-protection: true
# Ignore other plugins when
# this will try to ignore most plugins that manage inventory and will keep it regardless of what
# however players may abuse this and rise their ping during combat to escape and combat log them selfs if so disable ignore-other-plugins-on-ping
ignore-other-plugins-on-tps: true
ignore-other-plugins-on-ping: true
# disable ignore-other-plugins-on-ping if you worry that players may abuse this to survive combat logging and save their stuff, by using programs to raise their ping.
# XP Protection Settings
xp-protection:
enabled: true
prevent-duplication: true # Extra safety check
# keep this enabled to prevent xp duplication exploit that may be abused from this plugin, you can disable it if you want.
please don't reclaim this plugin as yours
please download this plugin only from here
If your modifying plugin dont remove my name from it
Next goals: optimize for more players in server add a /reload function for this
- Edition: Minecraft Java
- File type: .jar
- Minecraft versions listed: 1.16.5, 1.17.1, 1.18.2
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Modrinth — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
- Ships as InventoryProtect-1.0-SNAPSHOT-shaded.jar — drop this file into the mods folder
- Download size: 10 KB
- Download link checked 8 Sept 2026 — working
These come from our own check of the pack file, not from the source page.