From 4f8b1020b4c5af94126aa562d91d54533c0f38e8 Mon Sep 17 00:00:00 2001 From: NorbiPeti Date: Thu, 3 Nov 2016 22:00:02 +0100 Subject: [PATCH] Fixed GetSubCommands() --- src/main/java/buttondevteam/lib/chat/TBMCChatAPI.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/buttondevteam/lib/chat/TBMCChatAPI.java b/src/main/java/buttondevteam/lib/chat/TBMCChatAPI.java index 690b2e2..6df5ab4 100644 --- a/src/main/java/buttondevteam/lib/chat/TBMCChatAPI.java +++ b/src/main/java/buttondevteam/lib/chat/TBMCChatAPI.java @@ -34,7 +34,7 @@ public class TBMCChatAPI { cmds.add("ยง6---- Subcommands ----"); for (TBMCCommandBase cmd : TBMCChatAPI.GetCommands().values()) { if (cmd.GetCommandPath().startsWith(command.GetCommandPath() + " ")) { - int ind = cmd.GetCommandPath().indexOf('/', command.GetCommandPath().length() + 2); + int ind = cmd.GetCommandPath().indexOf(' ', command.GetCommandPath().length() + 2); if (ind >= 0) continue; cmds.add("/" + cmd.GetCommandPath());