make console commands not show in command suggestions

This commit is contained in:
Chayapak 2023-10-30 17:10:57 +07:00
parent 449d5da285
commit 87a21bf2a9

View file

@ -36,6 +36,8 @@ public class CommandSuggestionPlugin extends ChatPlugin.Listener {
output.add(Component.text(id)); output.add(Component.text(id));
for (Command command : CommandHandlerPlugin.commands) { for (Command command : CommandHandlerPlugin.commands) {
if (command.consoleOnly) continue;
final boolean hasAliases = command.aliases.length != 0; final boolean hasAliases = command.aliases.length != 0;
Component outputComponent = Component Component outputComponent = Component