If you want to set GameManager or loader, other manager or factory, overwrite configure method
Init your own Game Manager.
You must set your own game manager, to define joining, leaving and drawing game.
@OverrideprotectedLibraryConfigurationconfigure() { commandsModule =newCommandsModule(this);returnnewLibraryConfiguration(this, getConfiguratorsInitializer()).builder().setGameManager(newMyGameManager()).registerModules(commandsModule) //new way how to register command module.build(); }
If you want to use config.yml or other configuration YAML set it in initConfiguration method
You must implement this method
@OverrideprotectedvoidinitConfiguration() {getConfig().options().copyDefaults(true);saveConfig();//init your configuration classes }
The whole implementation of the minigame main class
publicclassMinigamePluginextendsMiniGame { @OverrideprotectedvoidonMiniGameEnable() {//define your on enable logic } @OverrideprotectedvoidinitConfiguration() {getConfig().options().copyDefaults(true);saveConfig();//init your configuration classes }}