forked from ChomeNS/chomens-bot-java
fixeeeee
This commit is contained in:
parent
cdb1a4a41d
commit
580552d0cf
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue