Class AuctionPlayerUpdateEvent
java.lang.Object
org.bukkit.event.Event
com.olziedev.playerauctions.api.events.AuctionEvent
com.olziedev.playerauctions.api.events.update.AuctionUpdateEvent<APlayer>
com.olziedev.playerauctions.api.events.update.AuctionPlayerUpdateEvent
- All Implemented Interfaces:
Cancellable
Event that is triggered before a players' data has been changed.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
The list of data that can bee changed in theAuctionPlayerUpdateEvent
event.Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Constructor Summary
ConstructorDescriptionAuctionPlayerUpdateEvent
(APlayer auctionPlayer, AuctionPlayerUpdateEvent.Type type) This event is triggered before a players' data has been changed. -
Method Summary
Methods inherited from class com.olziedev.playerauctions.api.events.update.AuctionUpdateEvent
getOldValue, getUpdatedValue
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
-
AuctionPlayerUpdateEvent
This event is triggered before a players' data has been changed.- Parameters:
auctionPlayer
- The player instance that is going to change. You can get the player either fromAuctionUpdateEvent.getUpdatedValue()
orAuctionUpdateEvent.getOldValue()
* they both return the same instance of the player.type
- The type of data that has been changed for that player.
-
-
Method Details
-
getHandlerList
-
getHandlers
- Specified by:
getHandlers
in classEvent
-
getType
- Returns:
- The type of data that has been changed for that player.
-