From 53e56a6414ded8d2745c2f5a20c147af8beb0f41 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Sun, 27 Mar 2016 07:11:09 +1100 Subject: [PATCH] Fix required args --- .../src/main/java/com/plotsquared/general/commands/Command.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/src/main/java/com/plotsquared/general/commands/Command.java b/Core/src/main/java/com/plotsquared/general/commands/Command.java index a17f1d04b..899adca9e 100644 --- a/Core/src/main/java/com/plotsquared/general/commands/Command.java +++ b/Core/src/main/java/com/plotsquared/general/commands/Command.java @@ -324,7 +324,7 @@ public abstract class Command { } Argument[] reqArgs = cmd.getRequiredArguments(); if ((reqArgs != null) && (reqArgs.length > 0)) { - boolean failed = args.length > reqArgs.length; + boolean failed = args.length < reqArgs.length; String[] baseSplit = getCommandString().split(" "); String[] fullSplit = getUsage().split(" "); String base = getCommandString();