From 649cf28399301a7e764ac4c6bffd12bf84e8b948 Mon Sep 17 00:00:00 2001 From: Sirawit Thaya <25237131+Noxturnix@users.noreply.github.com> Date: Mon, 15 Jun 2020 03:20:38 -0700 Subject: [PATCH] Fixed incorrectly arguments parsing (#773) --- .../java/org/geysermc/connector/command/CommandManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/connector/src/main/java/org/geysermc/connector/command/CommandManager.java b/connector/src/main/java/org/geysermc/connector/command/CommandManager.java index 88b9e795d..8b1d0bc78 100644 --- a/connector/src/main/java/org/geysermc/connector/command/CommandManager.java +++ b/connector/src/main/java/org/geysermc/connector/command/CommandManager.java @@ -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 }; }