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
Event that is triggered before a player bids on an auction.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Constructor Summary
ConstructorDescriptionPlayerAuctionBidWonEvent
(Auction playerAuction, APlayer bidder, double price) This event is triggered before a player purchases an auction. -
Method Summary
Methods inherited from class com.olziedev.playerauctions.api.events.AuctionEvent
acceptCallback, callEvent, getPlayerAuctionsAPI, isCancelled, isWaitingForCallback, postEvent, postEvent, setCancelled, setEventCallback, waitForCallback
Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
PlayerAuctionBidWonEvent
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
-
getHandlers
- Specified by:
getHandlers
in classEvent
-
getPlayerAuction
- Returns:
- The auction instance that is being bidded on.
-
getBidder
- Returns:
- The player that won the auction.
-
getPrice
public double getPrice()- Returns:
- The price of the bid.
-