Logo
MINECRAFTBIBLE
Items
Items

All game items

Blocks
Blocks

Building blocks

Mobs
Mobs

Creatures & monsters

Biomes
Biomes

World biomes

Structures
Structures

Generated structures

Recipes
Recipes

Crafting guides

Advancements
Advancements

Achievements

Loot Tables
Loot Tables

Drop rates

Tags
Tags

Item groupings

All Versions
View all data →
Capes
Cape ArchiveNEW

Browse rare Minecon capes, OptiFine capes, and custom capes from players worldwide

Browse

Player Database
Player DatabasePopular

Search any player

Skin Browser
Skin Browser

Browse & download skins

Cape Gallery
Cape GalleryNEW

Minecon & OptiFine capes

Seed Vault
Seed Vault

Curated seeds

Learn

Guides
GuidesNew

Tutorials & tips

Blog
Blog

News & updates

Community

Community Hub
Community HubHub

Posts, discussions & more

All Versions
View community →
Seed Analyzer
Seed Analyzer

World seed analysis

Loot Explorer
Loot Explorer

Drop rates

Crafting Calculator
Crafting Calculator

Material planning

Enchant Calculator
Enchant Calculator

Probability math

Redstone Lab
Redstone Lab

Signal timing

Trading Profit
Trading Profit

Villager ROI

All Versions
View all tools →
Mods
Mods

Browse all mods

Plugins
Plugins

Server plugins

Resource Packs
Resource Packs

Textures & sounds

Shaders
Shaders

Visual enhancements

Datapacks
Datapacks

World logic

Scanner
Mod Intelligence

Scan & analyze any mod

All Versions
View all mods →
Loading...
IntroductionIntroductionVersion HistoryVersion HistoryGuidesGuidesBlog & NewsBlog & News
ItemsItemsBlocksBlocksMobsMobsRecipesRecipesBiomesBiomesStructuresStructuresAdvancementsAdvancementsLoot TablesLoot TablesTagsTags
ModsModsPluginsPluginsResource PacksResource PacksShadersShadersDatapacksDatapacks

MinecraftBible

The Ultimate Wiki

Logo
MINECRAFTBIBLE

The ultimate Minecraft reference. Every item, block, mob, and recipe documented with precision.

Community

  • Skin Browser
  • Cape Gallery
  • Seed Vault
  • Blog
  • Guides

Database

  • Items
  • Blocks
  • Mobs
  • Recipes
  • Biomes
  • Structures

Tools

  • Seed Analyzer
  • Mod Intelligence
  • Crafting Calculator
  • Enchant Calculator

Mods & Packs

  • Mods
  • Plugins
  • Resource Packs
  • Shaders
  • Datapacks

Site & Legal

  • About
  • Authors
  • Editorial Policy
  • Corrections
  • Contact
  • Privacy Policy
  • Terms of Service
  • DMCA
  • Sitemap

© 2026 MinecraftBible. Not affiliated with Mojang or Microsoft.

PrivacyTermsContact
Keep Inventory on LAG
PluginCC-BY-NC-4.0

Keep Inventory on LAG

keep inventory when server lag or player's ping is high only

187
Downloads
5
Followers
1 years ago
Updated
📦
1
Versions
managementutilitybukkitpaperpurpurspigot
Download Latestv1.0.0View on Modrinth

📖About Keep Inventory on LAG

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

👥 Team & Contributors

Adioc14
Adioc14Owner

⚙️ Compatibility

Environment
🖥️ Server-side
Loaders
bukkitpaperpurpurspigot
Minecraft Versions
1.16.51.17.11.18.21.19.41.201.20.11.20.21.20.3+7 more

🔗 Links

Modrinth Page