Fixed incorrectly arguments parsing (#773)

This commit is contained in:
Sirawit Thaya 2020-06-15 03:20:38 -07:00 committed by GitHub
parent 0d6c3309e2
commit 649cf28399
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -75,7 +75,7 @@ public abstract class CommandManager {
args = new String[0];
} else {
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 };
}