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
Event that is triggered before a player purchases an auction.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Constructor Summary
ConstructorDescriptionPlayerAuctionBuyEvent
(Auction playerAuction, Player buyer, double price, ASerializableProduct<?> serializableProduct) 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
-
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
-
getHandlers
- Specified by:
getHandlers
in classEvent
-
getPlayerAuction
- Returns:
- The auction instance that is being bought from.
-
getBuyer
- Returns:
- The player that is purchasing the auction.
-
getPrice
public double getPrice()- Returns:
- The price the player will pay for the auction.
-
getSerializableProduct
- Returns:
- The item that the player will receive.
-