patches to command manager(and elsewhere) and added info command

Signed-off-by: deepCurse <leverplays@gmail.com>
This commit is contained in:
lever1209 2021-12-08 00:46:46 -04:00
commit 0fddf1e458
No known key found for this signature in database
GPG key ID: EEBCBB60C9DFC782
15 changed files with 475 additions and 132 deletions

View file

@ -21,13 +21,15 @@ public class Argument {
private String argName = null;
private Argument[] subArgs = null;
private boolean requiresPrefix = false;
private Boolean isWildcard;
private Boolean isWildcard = false;
private int position = -1;
private String wildCardString = null;
private boolean autoStartRunnable = false;
private boolean skipOriginalTaskOnRunnable = false;
private RunnableArg runnableArg = null;
private String permissionLevel;
private String permissionLevel = null;
private boolean isRequired = false;
private boolean isDeveloper = false;
public static final String argumentPrefix = "-"; // This exists for the sole reason of customization and will
// generally not change, ever, its recommended you keep it to
@ -148,7 +150,7 @@ public class Argument {
}
public interface RunnableArg {
public void run(CommandBlob blob);
}
@ -186,6 +188,7 @@ public class Argument {
public Argument setPermissionLevel(String string) {
this.permissionLevel = string;
this.isDeveloper = true;
return this;
}
@ -193,4 +196,22 @@ public class Argument {
return this.permissionLevel;
}
public boolean isRequired() {
return this.isRequired;
}
public Argument setIsRequired(boolean bool) {
this.isRequired = bool;
return this;
}
public boolean isDeveloper() {
return isDeveloper;
}
public Argument setDeveloper(boolean isDeveloper) {
this.isDeveloper = isDeveloper;
return this;
}
}