@ApiStatus.Internal public final class ThreadExecutorCooldownCondition extends java.lang.Object implements CommandCondition<CommandActor>, PostCommandExecutedHook<CommandActor>
| Constructor and Description |
|---|
ThreadExecutorCooldownCondition() |
| Modifier and Type | Method and Description |
|---|---|
void |
onPostExecuted(@NotNull ExecutableCommand<CommandActor> command,
@NotNull ExecutionContext<CommandActor> context)
Invokes the hook for a command whose action has been successfully executed
|
void |
test(@NotNull ExecutionContext<CommandActor> context)
Evaluates the condition.
|
public void onPostExecuted(@NotNull
@NotNull ExecutableCommand<CommandActor> command,
@NotNull
@NotNull ExecutionContext<CommandActor> context)
PostCommandExecutedHookonPostExecuted in interface PostCommandExecutedHook<CommandActor>command - The command that will be executedcontext - The execution contextpublic 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