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 Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final org.bukkit.plugin.Plugin
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    CommandAction(org.bukkit.plugin.Plugin plugin, String command)
    Create a new action
  • Method Summary

    Modifier and Type
    Method
    Description
    protected abstract void
    accept(org.bukkit.entity.Player player, String command)
    Accept the command
    void
    apply(UUID uuid, me.hsgamer.hscore.task.element.TaskProcess process, me.hsgamer.hscore.common.StringReplacer stringReplacer)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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, me.hsgamer.hscore.task.element.TaskProcess process, me.hsgamer.hscore.common.StringReplacer stringReplacer)
      Specified by:
      apply in interface Action