Overview Losing your hard-earned items and experience after an unexpected death is one of the most frustrating parts of Minecraft.
sInventoryRestore is here to solve that problem.
This plugin automatically saves a complete snapshot of a player's inventory, armor, and experience points the moment they die. This backup can then be easily restored by an administrator with a simple command, ensuring that unfair deaths from lag, glitches, or griefing never result in a permanent loss of progress.
Built to be lightweight and highly configurable, sInventoryRestore is the perfect "set it and forget it" solution for any server owner who wants to provide a safety net for their players.
Features
Automatic Death Backups: Silently and instantly saves a player's inventory the moment they die.
Complete Restore: Restores the main inventory, armor slots, off-hand, and total experience points.
Discord Integration: Get real-time death notifications in your Discord server with a beautiful, configurable embed that shows who died, why, and where.
Data Export: Admins can export a player's entire death history to a text file for logging or review.
Highly Configurable:
Customize all messages with your own prefix and colors.
Choose whether items and XP should also drop on the ground or be cleared.
Disable the plugin in specific worlds (like creative or minigame worlds).
Lightweight Storage: Uses an internal SQLite database, meaning no setup is required and it runs efficiently without causing lag.
Developer API: A clean and simple API for other plugins to hook into sInventoryRestore and access death backup data.
Commands & Permissions The main permission sInventoryRestore.command grants access to all subcommands. This is given to OPs by default.
/sinvrestore restore - Restores the most recent death inventory for an online player.
/sinvrestore export - Exports all saved death backups for a player to a text file in the plugins/sInventoryRestore/exports/ folder.
Alias: /sir
Configuration The config.yml is heavily commented and easy to understand. Here is a preview:
codeYaml
# sInventoryRestore Configuration File
settings:
# If true, items will be cleared from dropping on the ground when a player dies.
clear-drops-on-death: true
# If true, experience orbs will not drop when a player dies.
clear-exp-on-death: true
# The plugin will not save inventories for deaths that occur in these worlds.
disabled-worlds: []
messages:
prefix: "&8[&bSInvRestore&8] &r"
# ... and many more customizable messages!
# Settings for Discord integration.
discord-integration:
enabled: false # Set to true to enable Discord webhook logging.
webhook-url: "" # <<< PASTE YOUR DISCORD WEBHOOK URL HERE
bot-name: "sInventoryRestore"
# The embed message that will be sent to Discord on a player's death.
death-message:
title: "☠️ Player Death"
description: "**{player}** has died."
color: "#FF0000"
# ... and more embed settings
Installation
Download the sInventoryRestore.jar file.
Place it in your server's plugins folder.
Start or restart your server.
(Optional) Open plugins/sInventoryRestore/config.yml to customize settings and enable Discord integration.