From eb78e8de5cab87f40015fcfb15ecfde76bdd909f Mon Sep 17 00:00:00 2001 From: ChomeNS <95471003+ChomeNS@users.noreply.github.com> Date: Thu, 11 May 2023 10:33:37 +0700 Subject: [PATCH] actually remove no song is currently playing --- .../land/chipmunk/chipmunkbot/commands/MusicCommand.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/main/java/land/chipmunk/chipmunkbot/commands/MusicCommand.java b/src/main/java/land/chipmunk/chipmunkbot/commands/MusicCommand.java index d8f2386..3ac5c53 100644 --- a/src/main/java/land/chipmunk/chipmunkbot/commands/MusicCommand.java +++ b/src/main/java/land/chipmunk/chipmunkbot/commands/MusicCommand.java @@ -266,12 +266,9 @@ public class MusicCommand { return 1; } - public int pitch (CommandContext context) throws CommandSyntaxException { + public int pitch (CommandContext context) { final CommandSource source = context.getSource(); final SongPlayer songPlayer = source.client().songPlayer(); - final Song currentSong = songPlayer.currentSong(); - - if (currentSong == null) throw NO_SONG_IS_CURRENTLY_PLAYING.create(); final float pitch = getFloat(context, "pitch");