@ApiStatus.Internal public enum PermissionConditionChecker extends java.lang.Enum<PermissionConditionChecker> implements CommandCondition<CommandActor>
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
void |
test(@NotNull ExecutionContext<CommandActor> context)
Evaluates the condition.
|
static PermissionConditionChecker |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PermissionConditionChecker[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PermissionConditionChecker INSTANCE
public static PermissionConditionChecker[] values()
for (PermissionConditionChecker c : PermissionConditionChecker.values()) System.out.println(c);
public static PermissionConditionChecker valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic void test(@NotNull
@NotNull ExecutionContext<CommandActor> context)
CommandCondition
Ideally, this should throw any exceptions if the condition fails, and lets
them get handled by the CommandExceptionHandler.
test in interface CommandCondition<CommandActor>context - The command context