BetterEnderChest Converter - convert between my format and vanilla
My save format is a little bit different from the default one (it saves the contents of the chest in a different file). Starting at Beta 0.10 my plugin converts from vanilla to my format, but it doesn't convert it back. To keep the contents of your Ender Chests when uninstalling this plugin you have to run this little converter.
The converter can only convert between BetterEnderChest and vanilla. You can use the plugin to import from other plugins.
BetterEnderChest Converter - convert between my format and vanilla Warning: external link to my Dropbox. File is not checked by the BukkitDev staff. You can compile it from the source if you don't trust it.
Please make a backup of your player files before using. There might be a bug that corrupts your player files. When you are converting from vanilla to BetterEnderChest, the plugin doesn't write to the player files, so a backup is not necessary. However, it does write to the player files when converting to vanilla from BetterEnderChest.
Running with a GUI
This is a stand-alone jar file, no plugin. For Windows: if Java doesn't execute it automatically when left-clicking it, right-click on it and select Open with->Java.
The converter works very simple: just execute the file, make sure that the option for where the chests should be saved is correct (see your config.yml) and click on one of the two buttons, open the level.dat of your main world, and the converter will do the rest. If there are any errors, it should show a popup window (hopefully they didn't occur during saving, otherwise you will need to use your backup...). If you launched the converter from the console you will see a more detailed error message.
If you were converting from BetterEnderChest to vanilla, and there are no problems, you can remove the chest files. If you are ever reinstalling this plugin, make sure that there are no chest files, otherwise it will use those outdated chests instead of importing the chests from vanilla.
Running without a GUI
Run it like this:
java -jar BetterEnderChestConverter.jar <from/to> <path/to/level.dat/of/main/world> <PLUGIN_FOLDER/SERVER_ROOT>
<from/to>: from means that it will convert FROM BetterEnderChest to vanilla, to means that it will convert TO BetterEnderChest from vanilla.
- All items that aren't on row 1, 2 or 3 will be deleted when converting from BetterEnderChest to vanilla.
- The contents of the public chest will be lost.
- It only supports converting between vanilla and BetterEnderChest. Other formats (MultiInv, World-Inventories, etc.) aren't supported. The plugin itself, however, can import from some other plugins.
- I have only tested it on Windows. I hope there aren't any problems on Linux (and Mac).
Please report any problems you find. If you launch the converter from the console you will see more detailed errors.
Minecraft saves the contents of the Ender Chest inside the server_folder/worldname/players/playername.dat file, along with the rest of the player data (coordinates, inventory, health, etc.). My plugin saves it in the file server_folder/plugins/BetterEnderChest/chests/playername.dat or server_folder/chests, depending on the settings in the config.yml. I have done this to enable more rows in the chest (or less), to add a public chest, to make it possible to have separate backups and to make it easier for me to load the chest when the owner is offline (and comes online when the plugin wants to save the chest).
You can find the source and changelog here. License is the same as for the rest of the project.