From 87a21bf2a98d4d05583e8f0a664ce768680edde8 Mon Sep 17 00:00:00 2001 From: ChomeNS <95471003+ChomeNS@users.noreply.github.com> Date: Mon, 30 Oct 2023 17:10:57 +0700 Subject: [PATCH] make console commands not show in command suggestions --- .../chayapak/chomens_bot/plugins/CommandSuggestionPlugin.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/CommandSuggestionPlugin.java b/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/CommandSuggestionPlugin.java index 76f5a2f..f9e9999 100644 --- a/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/CommandSuggestionPlugin.java +++ b/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/CommandSuggestionPlugin.java @@ -36,6 +36,8 @@ public class CommandSuggestionPlugin extends ChatPlugin.Listener { output.add(Component.text(id)); for (Command command : CommandHandlerPlugin.commands) { + if (command.consoleOnly) continue; + final boolean hasAliases = command.aliases.length != 0; Component outputComponent = Component