Class WarpPlayerUpdateEvent
java.lang.Object
org.bukkit.event.Event
com.olziedev.playerwarps.api.events.WarpEvent
com.olziedev.playerwarps.api.events.update.WarpUpdateEvent<WPlayer>
com.olziedev.playerwarps.api.events.update.WarpPlayerUpdateEvent
- All Implemented Interfaces:
Cancellable
Event that is triggered before a players' data has been updated.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe list of data that can be updated in theWarpPlayerUpdateEventevent.Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionWarpPlayerUpdateEvent(WPlayer warpPlayer, WarpPlayerUpdateEvent.Type type) This event is triggered before a players' data has been updated. -
Method Summary
Methods inherited from class com.olziedev.playerwarps.api.events.update.WarpUpdateEvent
getOldValue, getUpdatedValueMethods inherited from class com.olziedev.playerwarps.api.events.WarpEvent
acceptCallback, callEvent, getPlayerWarpsAPI, isCancelled, isWaitingForCallback, postEvent, postEvent, setCancelled, setEventCallback, waitForCallbackMethods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
WarpPlayerUpdateEvent
This event is triggered before a players' data has been updated.- Parameters:
warpPlayer- The player instance that is going to update. You can get the player either fromWarpUpdateEvent.getUpdatedValue()orWarpUpdateEvent.getOldValue()they both return the same instance of the player.type- The type of data that has been updated for that player.
-
-
Method Details
-
getHandlerList
-
getHandlers
- Specified by:
getHandlersin classEvent
-
getType
- Returns:
- The type of data that has been updated for that player.
-