forked from SteamWar/SteamWar
Merge pull request 'Fix Discord commands with zero arguments' (#25) from VelocityCore/FixArgumentlessCommands into main
Reviewed-on: https://steamwar.de/devlabs/SteamWar/SteamWar/pulls/25 Reviewed-by: YoyoNow <jwsteam@nidido.de>
This commit is contained in:
@@ -85,7 +85,7 @@ public class ChannelListener extends ListenerAdapter {
|
||||
if(permission != null && !sender.user().perms().contains(permission))
|
||||
return;
|
||||
|
||||
command.execute(sender, args.split(" "));
|
||||
command.execute(sender, args.isEmpty() ? new String[0] : args.split(" "));
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user