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

public interface IExecutorNormal<T extends org.bukkit.command.CommandSender> extends IExecutorTyped
The interface for normal command executors
  • Method Summary

    Modifier and Type
    Method
    Description
    default int
    executeWith(org.bukkit.command.CommandSender sender, Object[] args)
    Executes the command executor with the provided command sender and the provided arguments.
    void
    run(T sender, Object[] args)
    Executes 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:
      executeWith in interface IExecutorTyped
      Parameters:
      sender - the command sender for this command
      args - 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

      void run(T sender, Object[] args) throws WrapperCommandSyntaxException
      Executes the command.
      Parameters:
      sender - the command sender for this command
      args - the arguments provided to this command
      Throws:
      WrapperCommandSyntaxException - if an error occurs during the execution of this command