diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 7a699f2..3b328af 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -4,7 +4,7 @@ - @@ -492,7 +491,8 @@ - diff --git a/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/CommandHandlerPlugin.java b/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/CommandHandlerPlugin.java index 18b0bdb..70b0c0e 100644 --- a/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/CommandHandlerPlugin.java +++ b/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/CommandHandlerPlugin.java @@ -79,7 +79,11 @@ public class CommandHandlerPlugin { final Command command = ElementUtilities.findCommand(commands, commandName); - if (command == null) return Component.text("Unknown command: " + commandName).color(NamedTextColor.RED); + // I think this is kinda annoying when you correct spelling mistakes or something like + // *whatever* (action or whatever you call it.,,.) so I removed the unknown command + // if (command == null) return Component.text("Unknown command: " + commandName).color(NamedTextColor.RED); + + if (command == null) return null; final int trustLevel = command.trustLevel();