Class PlayerAuctionMenuEvent

java.lang.Object
org.bukkit.event.Event
com.olziedev.playerauctions.api.events.AuctionEvent
com.olziedev.playerauctions.api.events.menu.PlayerAuctionMenuEvent
All Implemented Interfaces:
Cancellable

public class PlayerAuctionMenuEvent extends AuctionEvent
Event that is triggered before a menu is opened.
  • Constructor Details

    • PlayerAuctionMenuEvent

      public PlayerAuctionMenuEvent(APlayer player, String title, PlayerAuctionMenuEvent.MenuType type)
      This event is triggered before a menu is opened.
      Parameters:
      player - The player that is opening the menu.
      title - The title of the menu.
      type - The type of menu that is being opened.
  • Method Details

    • getHandlerList

      public static HandlerList getHandlerList()
    • getHandlers

      @Nonnull public HandlerList getHandlers()
      Specified by:
      getHandlers in class Event
    • getPlayer

      public APlayer getPlayer()
      Returns:
      The player that is opening the menu.
    • getType

      Returns:
      The type of menu that is being opened.
    • getTitle

      public String getTitle()
      Returns:
      The title of the menu
    • setTitle

      public void setTitle(String title)
      Parameters:
      title - The title of the menu.