From b2466693ae3535f4368bad09d85ffdcc04b16f95 Mon Sep 17 00:00:00 2001 From: Melledy <52122272+Melledy@users.noreply.github.com> Date: Mon, 18 Apr 2022 09:59:57 -0700 Subject: [PATCH] Fix small issue with command parsing --- src/main/java/emu/grasscutter/commands/PlayerCommands.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/emu/grasscutter/commands/PlayerCommands.java b/src/main/java/emu/grasscutter/commands/PlayerCommands.java index 73681491c..9123cbd94 100644 --- a/src/main/java/emu/grasscutter/commands/PlayerCommands.java +++ b/src/main/java/emu/grasscutter/commands/PlayerCommands.java @@ -79,7 +79,7 @@ public class PlayerCommands { return; } // Execute - int len = Math.min(first.length() + 1, msg.length()); + int len = Math.min(split[0].length() + 1, msg.length()); cmd.execute(player, msg.substring(len)); } }