Class TeleportGUIButton

All Implemented Interfaces:
Sizeable

public class TeleportGUIButton extends GUIButton
A GUIButton which automatically teleports the player to a specific Location
  • Constructor Details

    • TeleportGUIButton

      protected TeleportGUIButton(GUI gui, org.bukkit.inventory.ItemStack item, int cooldown, org.bukkit.Sound sound, String permission, org.bukkit.Location location)
      Creates a new TeleportGUIButton
      Parameters:
      gui - The GUI
      item - The ItemStack of the GUIButton
      location - The location to which the player is teleported
      cooldown - The cooldown of the Button
      permission - The permission required to press this button
      sound - The sound played when pressing this button
  • 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