{"id":89898,"date":"2026-06-05T06:13:08","date_gmt":"2026-06-05T03:13:08","guid":{"rendered":"https:\/\/vpesports.com\/minecraft\/mods\/keep-inventory-on-lag\/"},"modified":"2026-06-05T06:13:08","modified_gmt":"2026-06-05T03:13:08","slug":"keep-inventory-on-lag","status":"publish","type":"mod","link":"https:\/\/vpesports.com\/minecraft\/mods\/keep-inventory-on-lag\/","title":{"rendered":"Keep Inventory on LAG"},"content":{"rendered":"<p>This plugin keep inventory during lag from either low tps or high ping for specific player when they die.<\/p>\n<p>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.<\/p>\n<p>Same thing for the ping, however keep in mind players may abuse this like using programs to raise their ping to escape combat logging.<\/p>\n<p>As this plugin will mostly IGNORE combat drop and will keep it regardless.<br \/>\nAnd will mostly try to ignore any custom inventory plugins and will keep regardless when conditions met.<\/p>\n<p>this was tested on combatlogx and indeed it kept player&#8217;s inventory when player&#8217;s ping is high when they logged out<br \/>\nso disable this option if your worried about this.<\/p>\n<p>There is also a grace period after lag &#8220;can be configured&#8221; this mostly to prevent players dying after lag ends as because players die after lag.<\/p>\n<p>This plugin is recommended as it will reduce frustrations of players especially when your sever lags even if you enabled only TPS inventory protection.<\/p>\n<p>Notes\/ Keep in mind.<br \/>\n1 Works from 1.16 up to latest version tested 1.21.4, 1.21.1, 1.18.2, 1.17, 1.16<\/p>\n<p>2 The plugin is generally lightweight than other plugins like combat plugins<\/p>\n<p>3 However the more people in server die the more resources it will take, here are some estimations calculations of resources<\/p>\n<p>4 the plugin works below 1.16 but not properly and maybe buggy (not recommended)<\/p>\n<p>Paper 1.20.4 server with 4GB RAM and a 4-core CPU as an example<br \/>\nPerformance vs Player Count<br \/>\nPlayers CPU Usage (Avg) Memory Usage Death Events\/Min Notes<br \/>\n20 0.5-1% 2-5MB 5-10 Barely noticeable<br \/>\n50 1-2% 5-10MB 15-30 Minimal impact<br \/>\n100 2-3% 10-15MB 30-60 Starts showing in timings<br \/>\n200 4-5% 20-25MB 60-120 same thing as above, however will be noted in next versions for optimizations<\/p>\n<p>Config.yml<\/p>\n<p>&#8220;`<br \/>\n# Configuration for InventoryProtect<\/p>\n<p># TPS threshold (1m average) below which inventory is kept<br \/>\ntps-threshold: 15.0<\/p>\n<p># Ping threshold (ms) above which inventory is kept<br \/>\nping-threshold: 400<\/p>\n<p># Grace period in seconds after recovery<br \/>\n# time after that inventory will still be saved even after lag<br \/>\n# this to prevent players get jump scared after lag, most players usually die after lag<br \/>\ngrace-period: 7<\/p>\n<p># Enable protection types<br \/>\n# whenever keep inventory based either tps or ping, you can disable one or both of them<br \/>\nenable-tps-protection: true<br \/>\nenable-ping-protection: true<\/p>\n<p># Ignore other plugins when<br \/>\n# this will try to ignore most plugins that manage inventory and will keep it regardless of what<br \/>\n# 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<br \/>\nignore-other-plugins-on-tps: true<br \/>\nignore-other-plugins-on-ping: true<br \/>\n# 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.<\/p>\n<p># XP Protection Settings<br \/>\nxp-protection:<br \/>\n  enabled: true<br \/>\n  prevent-duplication: true  # Extra safety check<br \/>\n# keep this enabled to prevent xp duplication exploit that may be abused from this plugin, you can disable it if you want.<br \/>\n&#8220;`<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\nplease don&#8217;t reclaim this plugin as yours<\/p>\n<p>please download this plugin only from here<\/p>\n<p>If your modifying plugin dont remove my name from it<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\nNext goals:<br \/>\noptimize for more players in server<br \/>\nadd a \/reload function for this<\/p>\n","protected":false},"excerpt":{"rendered":"<p>keep inventory when server lag or player&#8217;s ping is high only<\/p>\n","protected":false},"featured_media":89899,"template":"","meta":{"_minecraft_slug":"keep-inventory-on-lag","_minecraft_project_id":"pr6amva1","_minecraft_author":"Adioc14","_minecraft_license":"CC-BY-NC-4.0","_minecraft_downloads":206,"_minecraft_follows":5,"_minecraft_client_side":"unsupported","_minecraft_server_side":"required","_minecraft_storage_type":"zip","_minecraft_archive_name":"keep-inventory-on-lag.zip","_minecraft_size_bytes":8595,"_minecraft_version_count":1,"_minecraft_updated_at":"2026-05-16T12:38:25.466968Z","_minecraft_date_created":"2025-05-09T03:30:21.305103Z","_minecraft_date_modified":"2025-05-07T19:31:44.719924Z","_minecraft_project_url":"https:\/\/modrinth.com\/mod\/keep-inventory-on-lag","_minecraft_icon_attachment_id":89899,"_minecraft_imported_at":"2026-06-05T03:13:09+00:00","_minecraft_import_hash":"e8ecdd236ec87e7ab15c565348ccebad","_minecraft_versions":"","_minecraft_links":"","_minecraft_gallery":"","_minecraft_api_metadata":""},"mod_category":[124,126,127,128,129,123,92],"mod_loader":[130,132,133,134],"minecraft_version":[48,50,53,58,59,36,60,93,94,101,102,62,37,74,38],"class_list":["post-89898","mod","type-mod","status-publish","has-post-thumbnail","hentry","mod_category-bukkit","mod_category-management","mod_category-paper","mod_category-purpur","mod_category-spigot","mod_category-technology","mod_category-utility","mod_loader-bukkit","mod_loader-paper","mod_loader-purpur","mod_loader-spigot","minecraft_version-1-16-5","minecraft_version-1-17-1","minecraft_version-1-18-2","minecraft_version-1-19-4","minecraft_version-1-20","minecraft_version-1-20-1","minecraft_version-1-20-2","minecraft_version-1-20-3","minecraft_version-1-20-4","minecraft_version-1-20-5","minecraft_version-1-20-6","minecraft_version-1-21","minecraft_version-1-21-1","minecraft_version-1-21-3","minecraft_version-1-21-4"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Keep Inventory on LAG - Minecraft<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/vpesports.com\/minecraft\/mods\/keep-inventory-on-lag\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Keep Inventory on LAG - Minecraft\" \/>\n<meta property=\"og:description\" content=\"keep inventory when server lag or player&#039;s ping is high only\" \/>\n<meta property=\"og:url\" content=\"https:\/\/vpesports.com\/minecraft\/mods\/keep-inventory-on-lag\/\" \/>\n<meta property=\"og:site_name\" content=\"Minecraft\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/keep-inventory-on-lag\\\/\",\"url\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/keep-inventory-on-lag\\\/\",\"name\":\"Keep Inventory on LAG - Minecraft\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/keep-inventory-on-lag\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/keep-inventory-on-lag\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/keep-inventory-on-lag-icon-35220472fee90a43f706ac82f39c804ec184392b.png\",\"datePublished\":\"2026-06-05T03:13:08+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/keep-inventory-on-lag\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/keep-inventory-on-lag\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/keep-inventory-on-lag\\\/#primaryimage\",\"url\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/keep-inventory-on-lag-icon-35220472fee90a43f706ac82f39c804ec184392b.png\",\"contentUrl\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/keep-inventory-on-lag-icon-35220472fee90a43f706ac82f39c804ec184392b.png\",\"width\":96,\"height\":96},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/keep-inventory-on-lag\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Mods\",\"item\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Keep Inventory on LAG\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/#website\",\"url\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/\",\"name\":\"Minecraft\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Keep Inventory on LAG - Minecraft","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/vpesports.com\/minecraft\/mods\/keep-inventory-on-lag\/","og_locale":"en_US","og_type":"article","og_title":"Keep Inventory on LAG - Minecraft","og_description":"keep inventory when server lag or player's ping is high only","og_url":"https:\/\/vpesports.com\/minecraft\/mods\/keep-inventory-on-lag\/","og_site_name":"Minecraft","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/vpesports.com\/minecraft\/mods\/keep-inventory-on-lag\/","url":"https:\/\/vpesports.com\/minecraft\/mods\/keep-inventory-on-lag\/","name":"Keep Inventory on LAG - Minecraft","isPartOf":{"@id":"https:\/\/vpesports.com\/minecraft\/#website"},"primaryImageOfPage":{"@id":"https:\/\/vpesports.com\/minecraft\/mods\/keep-inventory-on-lag\/#primaryimage"},"image":{"@id":"https:\/\/vpesports.com\/minecraft\/mods\/keep-inventory-on-lag\/#primaryimage"},"thumbnailUrl":"https:\/\/vpesports.com\/minecraft\/wp-content\/uploads\/2026\/06\/keep-inventory-on-lag-icon-35220472fee90a43f706ac82f39c804ec184392b.png","datePublished":"2026-06-05T03:13:08+00:00","breadcrumb":{"@id":"https:\/\/vpesports.com\/minecraft\/mods\/keep-inventory-on-lag\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/vpesports.com\/minecraft\/mods\/keep-inventory-on-lag\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/vpesports.com\/minecraft\/mods\/keep-inventory-on-lag\/#primaryimage","url":"https:\/\/vpesports.com\/minecraft\/wp-content\/uploads\/2026\/06\/keep-inventory-on-lag-icon-35220472fee90a43f706ac82f39c804ec184392b.png","contentUrl":"https:\/\/vpesports.com\/minecraft\/wp-content\/uploads\/2026\/06\/keep-inventory-on-lag-icon-35220472fee90a43f706ac82f39c804ec184392b.png","width":96,"height":96},{"@type":"BreadcrumbList","@id":"https:\/\/vpesports.com\/minecraft\/mods\/keep-inventory-on-lag\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/vpesports.com\/minecraft\/"},{"@type":"ListItem","position":2,"name":"Mods","item":"https:\/\/vpesports.com\/minecraft\/mods\/"},{"@type":"ListItem","position":3,"name":"Keep Inventory on LAG"}]},{"@type":"WebSite","@id":"https:\/\/vpesports.com\/minecraft\/#website","url":"https:\/\/vpesports.com\/minecraft\/","name":"Minecraft","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/vpesports.com\/minecraft\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod\/89898","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod"}],"about":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/types\/mod"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/media\/89899"}],"wp:attachment":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/media?parent=89898"}],"wp:term":[{"taxonomy":"mod_category","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod_category?post=89898"},{"taxonomy":"mod_loader","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod_loader?post=89898"},{"taxonomy":"minecraft_version","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/minecraft_version?post=89898"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}