forked from SteamWar/SteamWar
Fix Discord commands with zero arguments
This commit is contained in:
@@ -85,7 +85,7 @@ public class ChannelListener extends ListenerAdapter {
|
|||||||
if(permission != null && !sender.user().perms().contains(permission))
|
if(permission != null && !sender.user().perms().contains(permission))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
command.execute(sender, args.split(" "));
|
command.execute(sender, args.isEmpty() ? new String[0] : args.split(" "));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user