We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c4e11d6 + 041ab27 commit baf629aCopy full SHA for baf629a
src/main/java/com/jagrosh/jmusicbot/commands/owner/PlaylistCmd.java
@@ -72,7 +72,11 @@ public MakelistCmd()
72
protected void execute(CommandEvent event)
73
{
74
String pname = event.getArgs().replaceAll("\\s+", "_");
75
- if(bot.getPlaylistLoader().getPlaylist(pname)==null)
+ if(pname == null || pname.isEmpty())
76
+ {
77
+ event.replyError("Please provide a name for the playlist!");
78
+ }
79
+ else if(bot.getPlaylistLoader().getPlaylist(pname) == null)
80
81
try
82
0 commit comments