Class PlayerAuctionBuyEvent

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

public class PlayerAuctionBuyEvent extends AuctionEvent
Event that is triggered before a player purchases an auction.
  • Constructor Details

    • PlayerAuctionBuyEvent

      public PlayerAuctionBuyEvent(Auction playerAuction, Player buyer, double price, ASerializableProduct<?> serializableProduct)
      This event is triggered before a player purchases an auction.
      Parameters:
      playerAuction - The auction instance that is being bought from.
      buyer - The player that is purchasing the auction.
      price - The price the player will pay for the auction.
      serializableProduct - The product that the player will receive.
  • Method Details

    • getHandlerList

      public static HandlerList getHandlerList()
    • getHandlers

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

      public Auction getPlayerAuction()
      Returns:
      The auction instance that is being bought from.
    • getBuyer

      public Player getBuyer()
      Returns:
      The player that is purchasing the auction.
    • getPrice

      public double getPrice()
      Returns:
      The price the player will pay for the auction.
    • getSerializableProduct

      public ASerializableProduct<?> getSerializableProduct()
      Returns:
      The item that the player will receive.