Interface PlayerCommandExecutor

All Superinterfaces:
IExecutorNormal<org.bukkit.entity.Player>, IExecutorTyped
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 PlayerCommandExecutor extends IExecutorNormal<org.bukkit.entity.Player>
A normal command executor for a Player
  • Method Summary

    Modifier and Type
    Method
    Description
    default ExecutorType
    Returns the type of the sender of the current executor.
    void
    run(org.bukkit.entity.Player sender, Object[] args)
    The code to run when this command is performed

    Methods inherited from interface dev.jorel.commandapi.executors.IExecutorNormal

    executeWith
  • Method Details

    • run

      void run(org.bukkit.entity.Player sender, Object[] args) throws WrapperCommandSyntaxException
      The code to run when this command is performed
      Specified by:
      run in interface IExecutorNormal<org.bukkit.entity.Player>
      Parameters:
      sender - The sender of this command (a player, the console etc.)
      args - The arguments given to this command. The objects are determined by the hashmap of arguments IN THE ORDER of insertion into the hashmap
      Throws:
      WrapperCommandSyntaxException - if an error occurs during the execution of this command
    • getType

      default ExecutorType getType()
      Returns the type of the sender of the current executor.
      Specified by:
      getType in interface IExecutorTyped
      Returns:
      the type of the sender of the current executor