Package dev.jorel.commandapi.executors
Interface ConsoleExecutionInfo
- All Superinterfaces:
NormalExecutor<com.velocitypowered.api.proxy.ConsoleCommandSource,,VelocityConsoleCommandSender> TypedExecutor<com.velocitypowered.api.proxy.ConsoleCommandSource,VelocityConsoleCommandSender>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public interface ConsoleExecutionInfo
extends NormalExecutor<com.velocitypowered.api.proxy.ConsoleCommandSource,VelocityConsoleCommandSender>
-
Method Summary
Modifier and TypeMethodDescriptiondefault ExecutorTypegetType()Returns the type of the sender of the current executor.voidrun(ExecutionInfo<com.velocitypowered.api.proxy.ConsoleCommandSource, VelocityConsoleCommandSender> info) Executes the command.Methods inherited from interface dev.jorel.commandapi.executors.NormalExecutor
executeWith
-
Method Details
-
run
void run(ExecutionInfo<com.velocitypowered.api.proxy.ConsoleCommandSource, VelocityConsoleCommandSender> info) throws WrapperCommandSyntaxExceptionExecutes the command.- Specified by:
runin interfaceNormalExecutor<com.velocitypowered.api.proxy.ConsoleCommandSource,VelocityConsoleCommandSender> - Parameters:
info- The ExecutionInfo for this command- Throws:
WrapperCommandSyntaxException- if an error occurs during the execution of this command
-
getType
Returns the type of the sender of the current executor.- Specified by:
getTypein interfaceTypedExecutor<com.velocitypowered.api.proxy.ConsoleCommandSource,VelocityConsoleCommandSender> - Returns:
- the type of the sender of the current executor
-