From ea2bcb1fb0131ec9f7f6a9dafcd24008d2ce1afb Mon Sep 17 00:00:00 2001 From: ChomeNS <95471003+ChomeNS@users.noreply.github.com> Date: Fri, 14 Apr 2023 14:37:59 +0700 Subject: [PATCH] fix filename real l l l --- .../chayapak/chomens_bot/plugins/MusicPlayerPlugin.java | 3 +-- 1 file changed, 1 insertion(+), 2 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 6d836f2..08dd6ae 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 @@ -137,8 +137,6 @@ public class MusicPlayerPlugin extends SessionAdapter { if (currentSong.finished()) { bot.chat().tellraw(Component.translatable("Finished playing %s", Component.empty().append(currentSong.name).color(NamedTextColor.GOLD))); - fileName = null; - if (loop == Loop.CURRENT) { currentSong.setTime(0); return; @@ -153,6 +151,7 @@ public class MusicPlayerPlugin extends SessionAdapter { if (songQueue.size() == 0) { stopPlaying(); removeBossBar(); + fileName = null; bot.chat().tellraw(Component.text("Finished playing every song in the queue")); return; }