Package dev.jorel.commandapi.executors
Interface IExecutorNormal<T extends org.bukkit.command.CommandSender>
- Type Parameters:
T- the commandsender
- All Superinterfaces:
IExecutorTyped
- All Known Subinterfaces:
CommandBlockCommandExecutor,CommandExecutor,ConsoleCommandExecutor,EntityCommandExecutor,NativeCommandExecutor,PlayerCommandExecutor,ProxyCommandExecutor
The interface for normal command executors
-
Method Summary
Modifier and TypeMethodDescriptiondefault intexecuteWith(org.bukkit.command.CommandSender sender, Object[] args) Executes the command executor with the provided command sender and the provided arguments.voidExecutes the command.Methods inherited from interface dev.jorel.commandapi.executors.IExecutorTyped
getType
-
Method Details
-
executeWith
default int executeWith(org.bukkit.command.CommandSender sender, Object[] args) throws WrapperCommandSyntaxException Executes the command executor with the provided command sender and the provided arguments.- Specified by:
executeWithin interfaceIExecutorTyped- Parameters:
sender- the command sender for this commandargs- the arguments provided to this command- Returns:
- 1 if the command succeeds, 0 if the command fails
- Throws:
WrapperCommandSyntaxException- if an error occurs during the execution of this command
-
run
Executes the command.- Parameters:
sender- the command sender for this commandargs- the arguments provided to this command- Throws:
WrapperCommandSyntaxException- if an error occurs during the execution of this command
-