mirror of
https://github.com/kaboomserver/extras.git
synced 2025-02-11 11:40:19 +00:00
parent
b07f175fd8
commit
f5af75f526
1 changed files with 4 additions and 1 deletions
|
@ -50,7 +50,10 @@ public final class ServerCommand implements Listener {
|
||||||
String commandName = arr[0].toLowerCase();
|
String commandName = arr[0].toLowerCase();
|
||||||
|
|
||||||
if (isConsoleCommand) {
|
if (isConsoleCommand) {
|
||||||
commandName = "/" + arr[0].toLowerCase();
|
commandName = "/" + commandName;
|
||||||
|
} else if (arr.length >= 2 && commandName.equals("/")) {
|
||||||
|
// Command could contain spaces after the slash, e.g. "/ spawn"
|
||||||
|
commandName = "/" + arr[1].toLowerCase();
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int i = 1; i < arr.length; i++) {
|
for (int i = 1; i < arr.length; i++) {
|
||||||
|
|
Loading…
Reference in a new issue