Class CommandPreExecutionEvent<SENDER>
java.lang.Object
dev.rollczi.litecommands.command.executor.event.CommandPreExecutionEvent<SENDER>
- All Implemented Interfaces:
CommandExecutorEvent<SENDER>,Event
@Experimental
public class CommandPreExecutionEvent<SENDER>
extends Object
implements CommandExecutorEvent<SENDER>
-
Constructor Summary
ConstructorsConstructorDescriptionCommandPreExecutionEvent(Invocation<SENDER> invocation, CommandExecutor<SENDER> executor) -
Method Summary
Modifier and TypeMethodDescriptionvoidallow()voidcancel(FailedReason reason) booleanvoidsetSchedulerType(SchedulerType schedulerType)
-
Constructor Details
-
CommandPreExecutionEvent
-
-
Method Details
-
getInvocation
- Specified by:
getInvocationin interfaceCommandExecutorEvent<SENDER>
-
getExecutor
- Specified by:
getExecutorin interfaceCommandExecutorEvent<SENDER>
-
getSchedulerType
-
setSchedulerType
-
allow
public void allow() -
isCancelled
public boolean isCancelled() -
getCancelReason
-