Registering the API - TypicalFin/PluginCore GitHub Wiki

Registering the API is very simple. The only thing you have to do is make your plugin's main class implements CorePlugin and call the loadPlugin(), enablePlugin() and disablePlugin() functions accordingly. The API will register all commands, events, permissions and GUIs automatically.

Example:

public class MyPlugin extends JavaPlugin implements CorePlugin {

    @Override
    public void onLoad() {
        loadPlugin();
    }

    @Override
    public void onEnable() {
        enablePlugin();
    }

    @Override
    public void onDisable() {
        disablePlugin();
    }
    
}

NOTE: This code will be changed to a better design in a future update.