diff --git a/build-number.txt b/build-number.txt index bf074e85..7284cb65 100644 --- a/build-number.txt +++ b/build-number.txt @@ -1 +1 @@ -3147 \ No newline at end of file +3149 \ No newline at end of file diff --git a/src/main/java/me/chayapak1/chomens_bot/commands/MusicCommand.java b/src/main/java/me/chayapak1/chomens_bot/commands/MusicCommand.java index f5a145ae..bd7c1284 100644 --- a/src/main/java/me/chayapak1/chomens_bot/commands/MusicCommand.java +++ b/src/main/java/me/chayapak1/chomens_bot/commands/MusicCommand.java @@ -365,12 +365,14 @@ public class MusicCommand extends Command implements Listener { final MusicPlayerPlugin music = bot.music; if (music.currentSong == null) throw new CommandException(Component.translatable("commands.music.error.not_playing")); + final String name = music.currentSong.name; + music.skip(); return Component.translatable( "commands.music.skip", bot.colorPalette.defaultColor, - Component.text(music.currentSong.name, bot.colorPalette.secondary) + Component.text(name, bot.colorPalette.secondary) ); }