A Minecraft Spigot plugin that automatically saves player inventories on death and provides comprehensive restore functionality.
InventoryBackup is a robust and secure Minecraft Spigot plugin designed to automatically save player inventories upon death and provide comprehensive restore functionality. Built with server administrators in mind, it offers a complete solution for inventory management with focus on security, performance, and ease of use.
Players invest countless hours gathering resources, building, and progressing. Unexpected deaths, server crashes, or bugs can wipe out all that progress in seconds. InventoryBackup ensures that no player ever permanently loses their valuable items.
Simple commands make inventory management accessible to any administrator. No complex configuration required - just install and go.
Automatic backups mean you don't have to worry about manually saving inventories. The plugin handles everything in the background.
The plugin features an intelligent two-stage caching system:
This dual-stage approach ensures reliable inventory capture even in one-shot death scenarios, such as fall damage or instant-kill effects.
Administrators can create manual backups for any online player using the /inv backup command. This is useful for:
Multiple restore methods cater to different scenarios:
Comprehensive management tools allow administrators to:
Backup all online players at once:
/inv backup all
Perfect for creating server-wide snapshots before events or maintenance.
Backup a specific player:
/inv backup Steve
Useful when a player is about to do something risky and wants a safety net.
Restore a player's inventory from a backup:
/inv Steve restore 2024-05-24_15-30-45_death.yml
This completely replaces Steve's current inventory with the saved backup. The filename can be obtained using the list command.
View a backup before restoring:
/inv Steve show 2024-05-24_15-30-45_death.yml
Opens a GUI showing the saved inventory. This is perfect for verifying what items were in the backup before restoring.
Give only missing items:
/inv Steve givemissing 2024-05-24_15-30-45_death.yml
Compares the saved backup with Steve's current inventory and only gives back items that are missing. This is ideal when a player has already recovered some items but needs the rest.
List all backups for a player:
/inv Steve list
Shows all available backup files for Steve with their timestamps. Use this to find the right backup filename for restore operations.
Delete a specific backup:
/inv Steve delete 2024-05-24_15-30-45_death.yml
Removes a single backup file. Useful for cleaning up accidental or unwanted backups.
Delete all backups for a player:
/inv Steve delete all
Removes all backup files for a player. Use with caution - this cannot be undone.
The /inv command has two aliases for convenience:
/inventory/invbackupYou can use any of these interchangeably.
All commands require specific permissions. By default, only OPs have access:
inventorybackup.use - Use all inventory backup commandsinventorybackup.restore - Restore inventories and delete backupsinventorybackup.show - Show saved inventories and list backupsinventorybackup.givemissing - Give missing itemsinventorybackup.backup - Create manual backupsinventorybackup.notify - Receive backup notification messagesConfigure these in your permission plugin (like LuckPerms) to grant access to moderators or trusted players.
The plugin creates a config.yml file with these important settings:
auto-delete-days: 30
cleanup-interval-hours: 24
Backups older than 30 days are automatically deleted every 24 hours. Set auto-delete-days to 0 to disable automatic cleanup.
save-on-death: true
Enable or disable automatic death backups. Set to false if you only want manual backups.
cache-cleanup-interval: 30
How often (in seconds) the internal cache is cleaned up. Lower values use more CPU but free memory faster.
notify-on-backup: true
notify-ops-only: true
Control who receives backup notifications. Set notify-ops-only to false to allow anyone with the inventorybackup.notify permission to receive notifications.
A player fell into the void and lost all their items. As an admin, you can:
/inv PlayerName list to see available backups/inv PlayerName show <filename> to verify the backup contains their items/inv PlayerName restore <filename> to restore their inventoryYour server crashed during a raid event and players lost their items:
/inv backup all to create a fresh backup of everyone's current state/inv PlayerName restore <filename> for each affected player/inv PlayerName givemissing <filename> if they've already recovered some itemsA player is suspected of having illegal items:
/inv PlayerName list to see all their backups/inv PlayerName show <filename> to inspect inventories at different times/inv PlayerName delete <filename>Before a major PvP event or raid:
/inv backup all to save everyone's inventory/inv PlayerName delete all once everyone is satisfied/inv backup all before major events or maintenanceshow command to verify backup contents before restoringgivemissing command is often better than full restore when players have already recovered some itemsauto-delete-days to match your server's needs - 30 days is a good starting pointThe plugin integrates seamlessly with existing server infrastructure:
For issues, questions, or suggestions: