-
Notifications
You must be signed in to change notification settings - Fork 0
Automatic Data Saving
Asintoto edited this page Jun 21, 2024
·
2 revisions
Here you will find how to implements automatic data saving for you Basic's structures (currenlty Regions and Holograms)
This feature allows you to save structures even after a server restart or a plugin reload. It will create some .yml files to store information inside /plugins/YourPlugin/data/ folder of your Minecraft server.
In order to enable data saving you must enable the relative Option inside the onEnable() method:
Basic.options().saveRegions(); // This will handle region saving
Basic.options().saveHolograms(); // This will handle holograms saving
If you want to edit the name of the data folder simple run Basic.options().dataFolderName("your data folder name");