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

27 lines
503 B
Java
Raw Normal View History

2021-03-21 20:17:31 +01:00
package fr.pandacube.lib.paper;
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;
public static void init(Plugin plugin) {
PandaLibPaper.plugin = plugin;
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;
}
}