Skip to content
This repository was archived by the owner on Feb 19, 2019. It is now read-only.

Commit b5ed5c7

Browse files
committed
Fixed minor error
Without returning after handling valid command input, invalid input would follow. This caused UnknownCommandExceptions to be thrown after valid command execution.
1 parent e58278b commit b5ed5c7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/me/zero/client/api/command/handler/listener/ChatCommandListener.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ public ChatCommandListener(CommandHandler handler) {
9494
args[i - 1] = matches.get(i).replace("\"", "").replace("\'", "");
9595

9696
ClientAPI.EVENT_BUS.post(new CommandExecutionEvent(command, CommandSender.from(mc.player), args));
97+
return;
9798
}
9899
}
99100

0 commit comments

Comments
 (0)