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 1cc412f..7d058cd 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 @@ -47,6 +47,8 @@ public class BossbarManagerPlugin extends Bot.Listener { } public void packetReceived(ClientboundBossEventPacket packet) { + if (!enabled || !bot.options().useCore()) return; + try { switch (packet.getAction()) { case ADD -> { diff --git a/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/MusicPlayerPlugin.java b/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/MusicPlayerPlugin.java index 66fe72f..c375d9a 100644 --- a/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/MusicPlayerPlugin.java +++ b/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/MusicPlayerPlugin.java @@ -107,7 +107,7 @@ public class MusicPlayerPlugin extends Bot.Listener { if (bossBar == null && bot.bossbar().enabled()) bossBar = addBossBar(); - if (bot.bossbar().enabled()) { + if (bot.bossbar().enabled() && bot.options().useCore()) { bossBar.setTitle(generateBossbar()); bossBar.setColor(pitch > 0 ? BossBarColor.PURPLE : BossBarColor.YELLOW); bossBar.setValue((int) Math.floor(((double) currentSong.time / 1000) * speed));