Package cloud.commandframework.execution
Interface CommandExecutionHandler<C>
- Type Parameters:
C- Command sender type
- All Known Subinterfaces:
CommandExecutionHandler.FutureCommandExecutionHandler<C>
- All Known Implementing Classes:
CommandExecutionHandler.NullCommandExecutionHandler
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Handler that is invoked whenever a
Command is executed
by a command sender-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceHandler that is invoked whenever aCommandis executed by a command senderstatic classCommand execution handler that does nothing -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(@NonNull CommandContext<C> commandContext) Handle command executiondefault CompletableFuture<@Nullable Void>executeFuture(@NonNull CommandContext<C> commandContext) Handle command execution
-
Method Details
-
execute
Handle command execution- Parameters:
commandContext- Command context
-
executeFuture
Handle command execution- Parameters:
commandContext- Command context- Returns:
- future that completes when the command has finished execution
- Since:
- 1.6.0
-