mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-01 14:38:56 +00:00
Send help message on command not found
This commit is contained in:
1 parent
9154ef3370
commit
bef1c8de6e
2 files changed
+4
-1
No files matched your search
@@ -57,8 +57,11 @@ public class CommandHandler implements CommandExecutor {
|
||||
for (CommandBase base : commands) {
|
||||
if (base.getCommand().equalsIgnoreCase(command)) {
|
||||
base.run(cs, newArgs);
|
||||
break;
|
||||
}
|
||||
}
|
||||
// Command not found, send help
|
||||
commands.get(0).run(cs, null);
|
||||
} else {
|
||||
// Send help
|
||||
commands.get(0).run(cs, null);
|
||||
|
||||
Reference in new issue
Block a user