From 3f1fdb5bc1c97fe18112b0a24f2be5825c9fa1d9 Mon Sep 17 00:00:00 2001 From: ChomeNS <95471003+ChomeNS@users.noreply.github.com> Date: Tue, 2 May 2023 15:32:01 +0700 Subject: [PATCH] titty --- .../chayapak/chomens_bot/plugins/CommandHandlerPlugin.java | 2 ++ 1 file changed, 2 insertions(+) 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 70b0c0e..df77952 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 @@ -90,6 +90,8 @@ public class CommandHandlerPlugin { final String[] fullArgs = Arrays.copyOfRange(splitInput, 1, splitInput.length); final int longestUsageIndex = getLongestUsageIndex(command.usage()); final String usage = command.usage().get(longestUsageIndex); + + // TODO: improve these minimum args and maximum args stuff final int minimumArgs = getMinimumArgs(usage, inGame, command.trustLevel()); final int maximumArgs = getMaximumArgs(usage, inGame, command.trustLevel()); if (fullArgs.length < minimumArgs) return Component.text("Excepted minimum of " + minimumArgs + " argument(s), got " + fullArgs.length).color(NamedTextColor.RED);