make a plugin that when i do /invsave it saves the inventory and the same with /ecsave
Should I create a new Minecraft plugin project for this, or is it for an existing project you can add to the workspace?
a plugin
I’ve started a new Minecraft plugin project with /invsave to persist your inventory and /ecsave to persist your Ender Chest contents, saved separately for each player. The project is working on it now.
Create the plugin bootstrap and
/invsave, persisting inventory slots, armor, and offhand by UUID.Add
/ecsavewith separate UUID-keyed storage and permission declarations.Write YAML snapshots atomically and report success or failure to the player.Implemented
/invsaveand/ecsave. Each command saves a separate YAML snapshot keyed by player UUID under the plugin data folder;/invsaveincludes storage, armor, and offhand. Both commands handle console use, provide feedback, and have permissions declared inplugin.yml.
The plugin is implemented and compiled successfully. /invsave saves your inventory, armor, and offhand; /ecsave saves your Ender Chest. Each player’s snapshots are stored separately by UUID and persist across restarts.
No files in this session