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.
- Works from 1.16 up to latest version tested 1.21.4
- The plugin is generally lightweight than other plugins like combat plugins
- However the more people in server die the more resources it will take, here are some estimations calculations of resources
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
-----------------------------------------------------------------
please don't reclaim this plugin as yours
please download this plugin only from here
-----------------------------------------------------------------
Next goals:
optimize for more players in server
add a /reload function for this