totally not chipmunk real nickname reference
This commit is contained in:
ChomeNS 2023-03-25 10:28:20 +07:00
parent 46f8f2529a
commit e9fa84c93e

View file

@ -56,7 +56,7 @@ public class CommandHandlerPlugin {
final int minimumArgs = getMinimumArgs(usage); final int minimumArgs = getMinimumArgs(usage);
final int maximumArgs = getMaximumArgs(usage); final int maximumArgs = getMaximumArgs(usage);
if (fullArgs.length < minimumArgs) return Component.text("Excepted minimum of " + minimumArgs + " argument(s), got " + fullArgs.length).color(NamedTextColor.RED); if (fullArgs.length < minimumArgs) return Component.text("Excepted minimum of " + minimumArgs + " argument(s), got " + fullArgs.length).color(NamedTextColor.RED);
if (fullArgs.length > maximumArgs && !usage.contains("{")) return Component.text("Too much arguments, expected " + maximumArgs).color(NamedTextColor.RED); if (fullArgs.length > maximumArgs && !usage.contains("{")) return Component.text("Too much arguments, expected " + maximumArgs + " max").color(NamedTextColor.RED);
String userHash = ""; String userHash = "";
if (trustLevel > 0 && splitInput.length >= 2) userHash = splitInput[1]; if (trustLevel > 0 && splitInput.length >= 2) userHash = splitInput[1];