forked from chipmunkmc/chipmunkbot
actually remove no song is currently playing
This commit is contained in:
parent
9a0261ccad
commit
eb78e8de5c
1 changed files with 1 additions and 4 deletions
|
@ -266,12 +266,9 @@ public class MusicCommand {
|
|||
return 1;
|
||||
}
|
||||
|
||||
public int pitch (CommandContext<CommandSource> context) throws CommandSyntaxException {
|
||||
public int pitch (CommandContext<CommandSource> 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");
|
||||
|
||||
|
|
Loading…
Reference in a new issue