The ConfigManager
In order to work, you need to have created an instance of ConfigManager, this class is used for the creation and manipulation of the configuration of a plugin.
It creates and loads the minimum configuration necessary for the plugin and game instances to work. Once you have your instance created, in your plugins folder, a folder with the name of your plugin will appear. Inside this folder you will find the file:
worlds.yml : Used to register the worlds that will be used within their respective game instances.
In addition 2 other folders will be created, templates and games:
templates: Here you will have to place the worlds folders for your minigame instances.
games: When a new game instance is created, the world folder for that instance will be stored here.
Last updated