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
1 changed files with 1 additions and 1 deletions

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 };
}