Class CommandAction

java.lang.Object
me.hsgamer.hscore.bukkit.action.CommandAction
All Implemented Interfaces:
Action
Direct Known Subclasses:
OpAction, PermissionAction, PlayerAction

public abstract class CommandAction extends Object implements Action
The action to execute a command
  • Field Details

    • plugin

      protected final org.bukkit.plugin.Plugin plugin
  • Constructor Details

    • CommandAction

      protected CommandAction(org.bukkit.plugin.Plugin plugin, String command)
      Create a new action
      Parameters:
      plugin - the plugin
      command - the command
  • Method Details

    • accept

      protected abstract void accept(org.bukkit.entity.Player player, String command)
      Accept the command
      Parameters:
      player - the player
      command - the command
    • apply

      public void apply(UUID uuid, TaskProcess process, StringReplacer stringReplacer)
      Description copied from interface: Action
      Apply the action
      Specified by:
      apply in interface Action
      Parameters:
      uuid - the unique id
      process - the task process
      stringReplacer - the string replacer