forked from ChomeNS/chomens-bot-java
make console commands not show in command suggestions
This commit is contained in:
parent
449d5da285
commit
87a21bf2a9
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue