From b0997b5fe41440a2f0bf9c012cb7fe1cd3e18a43 Mon Sep 17 00:00:00 2001 From: ChomeNS <95471003+ChomeNS@users.noreply.github.com> Date: Sun, 24 Sep 2023 13:20:58 +0700 Subject: [PATCH] remove unused paused bossbar the bossbar manager automatically prevents the name from getting sent to the server if the name is the same --- .../chayapak/chomens_bot/plugins/MusicPlayerPlugin.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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 adf51ec..dc78c9c 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 @@ -51,8 +51,6 @@ public class MusicPlayerPlugin extends Bot.Listener { public String instrument = "off"; - private int ticksUntilPausedBossbar = 20; - private int notesPerSecond = 0; private int limit = 0; @@ -130,8 +128,7 @@ public class MusicPlayerPlugin extends Bot.Listener { currentSong.play(); } - if (currentSong.paused && ticksUntilPausedBossbar-- < 0) return; - else ticksUntilPausedBossbar = 20 - (((int) bot.tps.getTickRate()) - 20); + if (currentSong.paused) return; if (!currentSong.finished()) { BotBossBar bossBar = bot.bossbar.get(bossbarName);