Skip to content

Commit

Permalink
Fixed incorrectly arguments parsing (GeyserMC#773)
Browse files Browse the repository at this point in the history
  • Loading branch information
Noxturnix authored Jun 15, 2020
1 parent 0d6c330 commit 649cf28
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public void runCommand(CommandSender sender, String command) {
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 };
}

Expand Down

0 comments on commit 649cf28

Please sign in to comment.