2021-03-21 20:17:31 +01:00
|
|
|
package fr.pandacube.lib.paper;
|
|
|
|
|
2022-12-12 18:54:00 +01:00
|
|
|
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;
|
2022-12-12 18:54:00 +01:00
|
|
|
|
|
|
|
PerformanceAnalysisManager.getInstance(); // initialize
|
2022-02-17 22:59:50 +01:00
|
|
|
|
2021-03-21 20:17:31 +01:00
|
|
|
}
|
2022-12-12 19:35:53 +01:00
|
|
|
|
|
|
|
|
|
|
|
public static void disable() {
|
|
|
|
PerformanceAnalysisManager.getInstance().cancelInternalBossBar();
|
|
|
|
}
|
2021-03-21 20:17:31 +01:00
|
|
|
|
|
|
|
public static Plugin getPlugin() {
|
|
|
|
return plugin;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|