Class AbstractConsoleCommandExecutor

java.lang.Object
com.ultikits.ultitools.abstracts.AbstractCommand
com.ultikits.ultitools.abstracts.AbstractConsoleCommandExecutor
All Implemented Interfaces:
org.bukkit.command.CommandExecutor

public abstract class AbstractConsoleCommandExecutor extends AbstractCommand
Abstract class representing a console command executor.
See Also:
  • CommandExecutor
  • Constructor Details

    • AbstractConsoleCommandExecutor

      public AbstractConsoleCommandExecutor()
  • Method Details

    • onCommand

      public boolean onCommand(org.bukkit.command.CommandSender commandSender, org.bukkit.command.Command command, String s, String[] strings)
      Parameters:
      commandSender - the sender of the command
      command - the command which was executed
      s - the alias of the command which was used
      strings - the arguments passed to the command, split by spaces
      Returns:
      whether the command was executed successfully
      See Also:
      • CommandExecutor.onCommand(CommandSender, Command, String, String[])
    • onConsoleCommand

      protected abstract boolean onConsoleCommand(org.bukkit.command.CommandSender commandSender, org.bukkit.command.Command command, String[] strings)
      Executes the given command, returning its success
      Parameters:
      commandSender - the sender of the command
      command - the command which was executed
      strings - the arguments passed to the command, split by spaces
      Returns:
      whether the command was executed successfully