fix error i guess

This commit is contained in:
ChomeNS
2023-04-30 11:18:53 +07:00
parent 43cd87a930
commit 5b8fa78acf
2 changed files with 26 additions and 23 deletions

View File

@@ -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) {