Package dev.jorel.commandapi.executors
Interface IExecutorResulting<T extends org.bukkit.command.CommandSender>
- Type Parameters:
T- the commandsender
- All Superinterfaces:
IExecutorTyped
- All Known Subinterfaces:
CommandBlockResultingCommandExecutor,ConsoleResultingCommandExecutor,EntityResultingCommandExecutor,NativeResultingCommandExecutor,PlayerResultingCommandExecutor,ProxyResultingCommandExecutor,ResultingCommandExecutor
public interface IExecutorResulting<T extends org.bukkit.command.CommandSender>
extends IExecutorTyped
The interface for resulting 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.intExecutes 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:
- the value returned by this command 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- Returns:
- the value returned by this command
- Throws:
WrapperCommandSyntaxException- if an error occurs during the execution of this command
-