Class PermissionAction

java.lang.Object
me.hsgamer.hscore.bukkit.action.CommandAction
me.hsgamer.hscore.bukkit.action.PermissionAction
All Implemented Interfaces:
Action

public class PermissionAction extends CommandAction
The action to execute a command with permissions
  • Constructor Details

    • PermissionAction

      public PermissionAction(org.bukkit.plugin.Plugin plugin, String command, List<String> permissions)
      Create a new action
      Parameters:
      plugin - the plugin
      command - the command
      permissions - the permissions
  • Method Details

    • accept

      protected void accept(org.bukkit.entity.Player player, String command)
      Description copied from class: CommandAction
      Accept the command
      Specified by:
      accept in class CommandAction
      Parameters:
      player - the player
      command - the command