forked from GeyserMC/Geyser
Fixed incorrectly arguments parsing (#773)
This commit is contained in:
parent
0d6c3309e2
commit
649cf28399
1 changed files with 1 additions and 1 deletions
|
@ -75,7 +75,7 @@ public abstract class CommandManager {
|
||||||
args = new String[0];
|
args = new String[0];
|
||||||
} else {
|
} else {
|
||||||
label = command.substring(0, command.indexOf(" ")).toLowerCase();
|
label = command.substring(0, command.indexOf(" ")).toLowerCase();
|
||||||
String argLine = command.substring(command.indexOf(" " + 1));
|
String argLine = command.substring(command.indexOf(" ") + 1);
|
||||||
args = argLine.contains(" ") ? argLine.split(" ") : new String[] { argLine };
|
args = argLine.contains(" ") ? argLine.split(" ") : new String[] { argLine };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue