Fix OOB exception in ServerCommand when the command is just a space

This commit is contained in:
OptimisticDeving 2024-06-23 15:15:24 +00:00
parent 923a64c906
commit 42171a943f
Signed by: opt
SSH key fingerprint: SHA256:efAXeDMyuFt1iia2xaqlrcHPlsXcjQEWNA2tmvVTqK8

View file

@ -62,6 +62,11 @@ public final class ServerCommand implements Listener {
}
final String[] arr = command.split(" ");
if (arr.length == 0) {
return command;
}
String commandName = arr[0].toLowerCase();
if (isConsoleCommand) {