remove unused paused bossbar

the bossbar manager automatically prevents the name from getting sent to the server if the name is the same
This commit is contained in:
Chayapak 2023-09-24 13:20:58 +07:00
parent b863c97217
commit b0997b5fe4

View file

@ -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);