From 07c5a7358babcab8f2314366d3057c28e77df55d Mon Sep 17 00:00:00 2001 From: Liam Date: Fri, 5 Jul 2024 23:24:36 +0100 Subject: [PATCH] fix help cmd --- .../bat/features/base/commands/general/HelpCommand.java | 2 +- src/main/java/cc/fascinated/bat/service/CommandService.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/cc/fascinated/bat/features/base/commands/general/HelpCommand.java b/src/main/java/cc/fascinated/bat/features/base/commands/general/HelpCommand.java index 142d80f..38b6880 100644 --- a/src/main/java/cc/fascinated/bat/features/base/commands/general/HelpCommand.java +++ b/src/main/java/cc/fascinated/bat/features/base/commands/general/HelpCommand.java @@ -135,7 +135,7 @@ public class HelpCommand extends BatCommand implements EventListener { %s *View our [TOS](%s) and [Privacy Policy](%s) for more information.* """.formatted( - !ranInsideGuild ? "\n*guild only commands won't be shown here" : "", + !ranInsideGuild ? "\n*guild only commands won't be shown here*" : "", categories.toString(), Consts.TERMS_OF_SERVICE_URL, Consts.PRIVACY_POLICY_URL diff --git a/src/main/java/cc/fascinated/bat/service/CommandService.java b/src/main/java/cc/fascinated/bat/service/CommandService.java index 091c026..30bc791 100644 --- a/src/main/java/cc/fascinated/bat/service/CommandService.java +++ b/src/main/java/cc/fascinated/bat/service/CommandService.java @@ -140,7 +140,7 @@ public class CommandService extends ListenerAdapter { public List getCommandsByCategory(Category category, boolean includeGuildCommands) { List commands = new ArrayList<>(); for (BatCommand command : this.commands.values()) { - if (command.getInfo().getCategory() == category && (includeGuildCommands || !command.getInfo().isGuildOnly())) { + if (command.getInfo().getCategory() == category && (includeGuildCommands || command.getInfo().isUserInstall())) { commands.add(command); } }