Class PlayerAuctionBidWonEvent

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

public class PlayerAuctionBidWonEvent extends AuctionEvent
Event that is triggered before a player bids on an auction.
  • Constructor Details

    • PlayerAuctionBidWonEvent

      public PlayerAuctionBidWonEvent(Auction playerAuction, APlayer bidder, double price)
      This event is triggered before a player purchases an auction.
      Parameters:
      playerAuction - The auction instance that is being bidded on.
      bidder - The player that won the auction.
      price - The price of the bid.
  • 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 bidded on.
    • getBidder

      public APlayer getBidder()
      Returns:
      The player that won the auction.
    • getPrice

      public double getPrice()
      Returns:
      The price of the bid.