@ApiStatus.Experimental public class CommandPreExecutionEvent<SENDER> extends java.lang.Object implements CommandExecutorEvent<SENDER>
| Constructor and Description |
|---|
CommandPreExecutionEvent(Invocation<SENDER> invocation,
CommandExecutor<SENDER> executor) |
| Modifier and Type | Method and Description |
|---|---|
void |
allow() |
void |
cancel(FailedReason reason) |
FailedReason |
getCancelReason() |
CommandExecutor<SENDER> |
getExecutor() |
Invocation<SENDER> |
getInvocation() |
boolean |
isCancelled() |
public CommandPreExecutionEvent(Invocation<SENDER> invocation, CommandExecutor<SENDER> executor)
public Invocation<SENDER> getInvocation()
getInvocation in interface CommandExecutorEvent<SENDER>public CommandExecutor<SENDER> getExecutor()
getExecutor in interface CommandExecutorEvent<SENDER>public void cancel(FailedReason reason)
public void allow()
public boolean isCancelled()
public FailedReason getCancelReason()