Class CommandGUIButton

All Implemented Interfaces:
Sizeable

public class CommandGUIButton extends GUIButton
A GUIButton which executes a command.
  • Constructor Details

    • CommandGUIButton

      public CommandGUIButton(GUI gui, org.bukkit.inventory.ItemStack item, String command)
      Creates a new CommandGUIButton
      Parameters:
      gui - The GUI
      item - The ItemStack of the Button
      command - The command to be executed
  • Method Details

    • onClick

      public void onClick(ClickData data)
      Description copied from class: GUIButton
      Is called when the player clicks on the Button no matter how.
      Specified by:
      onClick in class GUIButton
      Parameters:
      data - The ClickData