Fix Discord commands with zero arguments

This commit is contained in:
Lixfel
2024-08-16 17:06:23 +02:00
parent c65c23d5e2
commit 7d7de2c2f3
@@ -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(" "));
});
}
}