๐ฆMinigame setup
The library requires T-DataBasesAPI on Paper 1.20.6 and newer versions.
Every minigame must extend MiniGame class.
public class MyMinigamePlugin extends MiniGame You must implement two abstract methods getPlayerCommand and getAdminCommand.
These two methods are important to the addon system.
@Override
public ParentCommand getPlayerCommand() {
return new PlayerCommand();
}
@Override
public ParentCommand getAdminCommand() {
return new AdminCommand();
}Sets two configurators before you call super.onEnable.
Game configurator
Plugin configurator
If you don't set these configurators, will apply default configurators.
Set your command configurator:
Init your own Game Manager.
You must set your own game manager, to define joining, leaving and drawing game.
Register default listeners:
This method is important to define default listeners system
On the end call loadAll method to load all data to default systems.
The whole implementation of the minigame main class
Last updated