DESCRIPTION
InventoryRestore is a bare-bones inventory-restoring plugin originally created by myself in 2016. The plugin caches player inventories on death for easy restoring via a command. This feature is most common on HCF servers but can be found in a variety of game modes.
FEATURES
- Inventory caching on player death with the ability to restore it via command
- Fully configurable config file
- Compatible with all versions of Minecraft (1.8-1.18.1)
COMMANDS
This plugin has only one single command as of version 2.0. The permission node required to run this command is
inventoryrestore.restore.
- /inventoryrestore [ir, invrestore] <player> - restores a player's inventory to the last cached state
CONFIGURATION
Everything is customizable in the configuration file generated in the plugin folder.
Code (Text):
# --------------------------------------------------
# InventoryRestore Configuration File
#
# Version: 2.1
# Author: Evan Wright
# Github: https://github.com/evancolewright/inventory-restore
# --------------------------------------------------
store_on_natural_death: true # Should the system store the inventory of a player that dies from natural causes?
require_empty_inventory: true # Should a player's inventory be clear before you can restore it?
clear_on_restore: true # Clear a player from the cache after their inventory is restored?
messages:
usage: "&cUsage: /ir <player>"
player_offline: "&cThat player is offline!"
player_inventory_not_empty: "&cThat player's inventory is not empty!"
player_no_cache: "&cThat player does not have a cached inventory to be restored!"
player_inventory_restored: "&eSuccessfully restored {PLAYER}'s inventory!"
inventory_restored: "&eYour inventory was restored by an administrator!"
IMAGES
Coming Soon.
TODO:
- Save player's XP level (coming in version 2.2)
Planned features will be labeled as an "enhancement"
here.
SUPPORT / DEVELOPMENT
If you are having an issue with the jar, I ask that you please PM me on SpigotMC or open an issue on GitHub
prior to leaving a review. The same goes for feature requests. The review section is not an adequate place to report bugs, discuss incompatibility issues, or request additions.
If you're a
developer and wish to contribute, submit a PR on GitHub and I'll take a look.