brunyman / CustomEnderChest

8 stars 14 forks source link

Add option to migrate from default enderchest #20

Open redxtech opened 1 year ago

redxtech commented 1 year ago

Heyo, I have just installed this plugin on a SMP server, and when I restarted, I noticed that everyone's inventory was completely empty!

I was wondering if there was an existing way to migrate the standard enderchest inventory of everyone into this plugin's database (or flat file, that's what I'm using).

If not, I think that would be a very nice option to add, maybe a config option, if a player opens an empty EC (or maybe opens their EC for the first time since the plugin was installed would be better?) then it can check the contents of the standard EC, and if they will fit in their assigned EC size, copies the data into the plugin's database.

Any info on how to migrate the default enderchests into this plugin would be great as well.

Thanks!