PandaLib/pandalib-paper/src/main/java/fr/pandacube/lib/paper/PandaLibPaper.java

32 lines
683 B
Java

package fr.pandacube.lib.paper;
import fr.pandacube.lib.paper.event.ServerStopEvent;
import fr.pandacube.lib.paper.json.PaperJson;
import fr.pandacube.lib.paper.modules.PerformanceAnalysisManager;
import org.bukkit.plugin.Plugin;
public class PandaLibPaper {
private static Plugin plugin;
public static void onLoad(Plugin plugin) {
PandaLibPaper.plugin = plugin;
PaperJson.init();
}
public static void onEnable() {
PerformanceAnalysisManager.getInstance(); // initialize
ServerStopEvent.init();
}
public static void disable() {
PerformanceAnalysisManager.getInstance().cancelInternalBossBar();
}
public static Plugin getPlugin() {
return plugin;
}
}