Interface PerformButton

All Known Subinterfaces:
BackButton, Button, HomeButton, InventoryButton, NextButton, NoneButton, PaginateButton, PreviousButton

public interface PerformButton
The PerformButton interface performs actions for a Button.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    execute(org.bukkit.entity.Player player, org.bukkit.event.inventory.ClickType type)
    Executes commands based on the player and click type.
    Returns the list of commands that the player will execute.
    Returns the list of console commands that will be executed.
    Returns the list of console commands that will be executed if the click is a left-click.
    Returns the permission the player must have to use the console permission commands.
    Returns the list of console commands that will be executed if the player has the required permission.
    Returns the list of console commands that will be executed if the click is a right-click.
  • Method Details

    • getCommands

      List<String> getCommands()
      Returns the list of commands that the player will execute.
      Returns:
      The list of commands to be executed.
    • getConsoleCommands

      List<String> getConsoleCommands()
      Returns the list of console commands that will be executed.
      Returns:
      The list of console commands to be executed.
    • getConsoleRightCommands

      List<String> getConsoleRightCommands()
      Returns the list of console commands that will be executed if the click is a right-click.
      Returns:
      The list of console commands to be executed on right-click.
    • getConsoleLeftCommands

      List<String> getConsoleLeftCommands()
      Returns the list of console commands that will be executed if the click is a left-click.
      Returns:
      The list of console commands to be executed on left-click.
    • getConsolePermissionCommands

      List<String> getConsolePermissionCommands()
      Returns the list of console commands that will be executed if the player has the required permission.
      Returns:
      The list of console commands to be executed on permission.
    • getConsolePermission

      String getConsolePermission()
      Returns the permission the player must have to use the console permission commands.
      Returns:
      The required permission for console permission commands.
    • execute

      void execute(org.bukkit.entity.Player player, org.bukkit.event.inventory.ClickType type)
      Executes commands based on the player and click type.
      Parameters:
      player - The player who will execute the commands.
      type - The click type.