@Override public void onEnable() { instance = this; eventListener.onEnable(); gameManager.onEnable(); saveDefaultConfig(); reloadConfig(); // loadConfiguration(); }
@Override public void onDisable() { playerManager.clear(); worldManager.clear(); eventManager.clear(); gameManager.clear(); if (hearts != null) hearts.disable(); instance = null; }
public void unregisterGame(Game game) { eventManager.unregisterGame(game); worldManager.unregisterGame(game); playerManager.unregisterGame(game); gameManager.unregisterGame(game); }