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

30 lines
604 B
Java
Raw Normal View History

2021-03-21 20:17:31 +01:00
package fr.pandacube.lib.paper;
import fr.pandacube.lib.paper.json.PaperJson;
import fr.pandacube.lib.paper.modules.PerformanceAnalysisManager;
2021-03-21 20:17:31 +01:00
import org.bukkit.plugin.Plugin;
public class PandaLibPaper {
private static Plugin plugin;
2022-12-14 17:58:05 +01:00
public static void onLoad(Plugin plugin) {
2021-03-21 20:17:31 +01:00
PandaLibPaper.plugin = plugin;
PaperJson.init();
2022-12-14 17:58:05 +01:00
}
2022-12-14 17:58:05 +01:00
public static void onEnable() {
PerformanceAnalysisManager.getInstance(); // initialize
2021-03-21 20:17:31 +01:00
}
public static void disable() {
PerformanceAnalysisManager.getInstance().cancelInternalBossBar();
}
2021-03-21 20:17:31 +01:00
public static Plugin getPlugin() {
return plugin;
}
}