mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 21:26:45 +01:00
Fix required args
This commit is contained in:
parent
46d3dc609e
commit
53e56a6414
@ -324,7 +324,7 @@ public abstract class Command {
|
|||||||
}
|
}
|
||||||
Argument<?>[] reqArgs = cmd.getRequiredArguments();
|
Argument<?>[] reqArgs = cmd.getRequiredArguments();
|
||||||
if ((reqArgs != null) && (reqArgs.length > 0)) {
|
if ((reqArgs != null) && (reqArgs.length > 0)) {
|
||||||
boolean failed = args.length > reqArgs.length;
|
boolean failed = args.length < reqArgs.length;
|
||||||
String[] baseSplit = getCommandString().split(" ");
|
String[] baseSplit = getCommandString().split(" ");
|
||||||
String[] fullSplit = getUsage().split(" ");
|
String[] fullSplit = getUsage().split(" ");
|
||||||
String base = getCommandString();
|
String base = getCommandString();
|
||||||
|
Loading…
Reference in New Issue
Block a user