From 264300ead62d60e99b47d71185ac8315923b960f Mon Sep 17 00:00:00 2001 From: Marc Baloup Date: Mon, 12 Dec 2022 19:35:53 +0100 Subject: [PATCH] Ability to disable PerformanceAnalysisManager on server shutdown --- .../src/main/java/fr/pandacube/lib/paper/PandaLibPaper.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pandalib-paper/src/main/java/fr/pandacube/lib/paper/PandaLibPaper.java b/pandalib-paper/src/main/java/fr/pandacube/lib/paper/PandaLibPaper.java index 7a47efc..159c3c2 100644 --- a/pandalib-paper/src/main/java/fr/pandacube/lib/paper/PandaLibPaper.java +++ b/pandalib-paper/src/main/java/fr/pandacube/lib/paper/PandaLibPaper.java @@ -13,6 +13,11 @@ public class PandaLibPaper { PerformanceAnalysisManager.getInstance(); // initialize } + + + public static void disable() { + PerformanceAnalysisManager.getInstance().cancelInternalBossBar(); + } public static Plugin getPlugin() { return plugin;