From 580552d0cf435f5ea786f3f88d6c50f8fb00d168 Mon Sep 17 00:00:00 2001 From: ChomeNS <95471003+ChomeNS@users.noreply.github.com> Date: Sat, 22 Jul 2023 20:10:02 +0700 Subject: [PATCH] fixeeeee --- .../chipmunk/chayapak/chomens_bot/plugins/MusicPlayerPlugin.java | 1 + 1 file changed, 1 insertion(+) 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 2ee28e8..91c1c73 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 @@ -110,6 +110,7 @@ public class MusicPlayerPlugin extends Bot.Listener { bossBar.setTitle(generateBossbar()); bossBar.setColor(pitch > 0 ? BossBarColor.PURPLE : BossBarColor.YELLOW); bossBar.setValue((int) Math.floor(((double) currentSong.time / 1000) * speed)); + bossBar.setMax((long) ((currentSong.length / 1000) * speed)); } if (currentSong.paused || bot.core.isRateLimited()) return;