public interface CommandCondition<A extends CommandActor>
These conditions can test against custom annotations in ExecutableCommands,
and hence perform external checks for reducing boilerplate
| Modifier and Type | Method and Description |
|---|---|
void |
test(@NotNull ExecutionContext<A> context)
Evaluates the condition.
|
void test(@NotNull
@NotNull ExecutionContext<A> context)
Ideally, this should throw any exceptions if the condition fails, and lets
them get handled by the CommandExceptionHandler.
context - The command context