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 2ae9302..7d149db 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 @@ -70,9 +70,9 @@ public class BossbarManagerPlugin extends Bot.Listener { final BotBossBar botBossBar = get(bossBar.title); if (botBossBar != null && botBossBar.color != packet.getColor()) { - botBossBar.setColor(bossBar.color, true); + botBossBar.setColor(botBossBar.color, true); } else if (botBossBar != null && botBossBar.division != packet.getDivision()) { - botBossBar.setDivision(bossBar.division, true); + botBossBar.setDivision(botBossBar.division, true); } bossBar.color = packet.getColor(); 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 4522fc3..2b1aae2 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 @@ -112,7 +112,7 @@ public class MusicPlayerPlugin extends Bot.Listener { } if (currentSong.paused && ticksUntilPausedBossbar-- < 0) return; - else ticksUntilPausedBossbar = 20; + else ticksUntilPausedBossbar = 20 + (((int) bot.tps().getTickRate()) - 20); BotBossBar bossBar = bot.bossbar().get(bossbarName);