You can test out the plugin on my dev server: mc.m0-dev.live
_________________________________________________ # FEATURES
• Store your inventory for specific worlds. • Automatically clears your inventory upon using the command, if enabled in config. • Puts items back in the correct order when restoring the inventory. • Toggle and permission whether to clear inventory when storing. • Ability to view stored inventories. • Ability to store your inventory by any name. • Persists through server restarts (file storage). • Option to automatically save inventory on changing world. • Option to automatically save inventory on deaths. • Ability to clear your stored inventory.
_________________________________________________ # ABOUT COMMAND USAGE /saveinventory - saves (and clears, if enabled) your inventory; /restoreinventory - restores your saved inventory; /saveinventory reload - reloads the configuration; /saveinventory [storage-id] - stores the inventory /restoreinventory [storage-id] - restores inventory by storage id; /restoreinventorypreview [storage-id] - preview your saved inventory; /restoreinventory clear [storage-id] - clear your saved inventory.
When you store your inventory without providing an ID, it stores your inventory under id 'default'. Same thing happens when restoring. If you do not provide an id, it will restore your 'default' inventory. (Applies to clear command too).
PERMISSIONS saveinventory.command.save - permission to use /saveinventory command; saveinventory.command.restore - permission to use /restoreinventory command; saveinventory.command.preview - permission to use /restoreinventory preview command; saveinventory.command.reload - permission to reload configuration; saveinventory.command.clear - permission to clear your stored inventory.
saveinventory.save.clear - will clear inventory on save enabled in the config; saveinventory.save.death - saves inventory on death; saveinventory.save.worldchange - saves inventory on world change; saveinventory.save.multiple - permission to save multiple inventories by providing storage id.
_________________________________________________ # CONFIGURATION Configuration is pretty simple and easy to understand.
Code (YAML):
messages:
no-permission: "&c&lYou do not have permission to do this!" player-not-found: "&c&lPlayer not found." reloaded: "&aSuccessfully reloaded config." saved: "&aYour inventory has been saved." restored: "&aYour previous saved inventory has been restored." no-inventory-restore: "&cYou do not have an inventory to restore in this world." inventory-saved-death: "&aYou have died, but your inventory has been saved. Restore it using &2/restoreinventory&a." inventory-saved-world-change: "&aYou have changed worlds and your inventory has been saved. Restore it using &2/restoreinventory&a." inventory-restored-world-change: "&aYou have changed worlds and your inventory has been restored." clear-on-save: true
# Permission: saveinventory.save.clear save-on-death: true
# Permission: saveinventory.save.death save-on-world-change: true
# Permission: saveinventory.save.worldchange # If true, the command /restoreinventory will not wipe previous saved data. # You will be able to use the command multiple times to restore previous saved inventory. keep-last-saved-inventory: false
# If 'per-world-save' is enabled, then the inventory will be saved for each world. # Ex. if player saves his inventory in world 'X', then he won't be able to restore it in world 'Y'. per-world-save: false
# If 'per-world-save' is enabled, the automatic restore/save # on join will work for the new world, leave for previous world.
# Will trigger automatic inventory restore when entering one of the worlds listed below. auto-save-on-world-join: - world
# Will trigger automatic inventory restore when entering one of the worlds listed below. auto-restore-on-world-join: []
# Will trigger automatic inventory save when leaving one of the worlds listed below. auto-save-on-world-leave: []
# Will trigger automatic inventory restore when leaving one of the worlds listed below. auto-restore-on-world-leave: []
_________________________________________________
MY OTHER PLUGINS
• CoreCord - CoreProtect integration for Discord. • ExtraEnchants - Simple additional enchantments for your server. • AntiAnvilRename - Prevent players from renaming certain items using anvils. • SimpleBombs - Customizable bombs for prison and other servers. •VenturaCalendar - In-game calendar with customizable events and much more. •OnlinePlayersGUI- Online players in a GUI. Filter by conditions, placeholders.
Resources from M0dii - all plugins. _________________________________________________
Please leave a positive review if the plugin works as intended, if you have an issue contact me on discord provided or open an issue on github. _________________________________________________