forked from ChomeNS/chomens-bot-java
fix filename real l l l
This commit is contained in:
parent
ebd53d9d5e
commit
ea2bcb1fb0
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue