Class PlayerAuctionBidEvent

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

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

    • PlayerAuctionBidEvent

      public PlayerAuctionBidEvent(Auction playerAuction, APlayer bidder, double price, boolean notEnoughMoney)
      This event is triggered before a player purchases an auction.
      Parameters:
      playerAuction - The auction instance that is being bidded on.
      bidder - The player that is bidding on this auction.
      price - The price of the bid, if the price is -1, then the bid is removed.
      notEnoughMoney - If the player does not have enough money to bid, so the bid is removed.
  • 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 is bidding on this auction.
    • getPrice

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

      public boolean isNotEnoughMoney()
      Returns:
      If the player does not have enough money to bid, so the bid is removed.