diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 8018aa1..db364b5 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -4,10 +4,9 @@ - @@ -483,7 +481,8 @@ - diff --git a/src/main/java/land/chipmunk/chayapak/chomens_bot/commands/MusicCommand.java b/src/main/java/land/chipmunk/chayapak/chomens_bot/commands/MusicCommand.java index 13151c8..43ebd16 100644 --- a/src/main/java/land/chipmunk/chayapak/chomens_bot/commands/MusicCommand.java +++ b/src/main/java/land/chipmunk/chayapak/chomens_bot/commands/MusicCommand.java @@ -275,11 +275,15 @@ public class MusicCommand implements Command { final MusicPlayerPlugin music = context.bot().music(); if (music.currentSong() == null) return Component.text("No song is currently playing").color(NamedTextColor.RED); + context.sendOutput( + Component.empty() + .append(Component.text("Skipping ")) + .append(music.currentSong().name.color(NamedTextColor.GOLD)) + ); + music.skip(); - return Component.empty() - .append(Component.text("Skipping ")) - .append(music.currentSong().name.color(NamedTextColor.GOLD)); + return null; } public Component nowplaying (CommandContext context) {