From 6b34fd9c8c4148ee061a99a37c3f2a51a126c2bc Mon Sep 17 00:00:00 2001 From: ChomeNS <95471003+ChomeNS@users.noreply.github.com> Date: Fri, 30 Jun 2023 22:04:43 +0700 Subject: [PATCH] MORE fix --- .../chayapak/chomens_bot/plugins/BossbarManagerPlugin.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/BossbarManagerPlugin.java b/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/BossbarManagerPlugin.java index 7d058cd..9fd1ea0 100644 --- a/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/BossbarManagerPlugin.java +++ b/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/BossbarManagerPlugin.java @@ -194,6 +194,8 @@ public class BossbarManagerPlugin extends Bot.Listener { } public void remove (String name) { + if (!enabled || !bot.options().useCore()) return; + final Map mapCopy = new HashMap<>(bossBars); for (Map.Entry bossBar : mapCopy.entrySet()) {