Class PlayerWarpUpdateEvent
java.lang.Object
org.bukkit.event.Event
com.olziedev.playerwarps.api.events.WarpEvent
com.olziedev.playerwarps.api.events.update.WarpUpdateEvent<Warp>
com.olziedev.playerwarps.api.events.update.PlayerWarpUpdateEvent
- All Implemented Interfaces:
Cancellable
Event that is triggered before a warp has been updated.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe list of data that can bee updated in theWarpPlayerUpdateEventevent.Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionPlayerWarpUpdateEvent(Warp warp, PlayerWarpUpdateEvent.Type type) This event is triggered before a warp' 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
-
PlayerWarpUpdateEvent
This event is triggered before a warp' data has been updated.- Parameters:
warp- The warp instance that is going to update. You can get the warp either fromWarpUpdateEvent.getUpdatedValue()orWarpUpdateEvent.getOldValue()they both return the same instance of the warp.type- The type of data that has been updated for that warp.
-
-
Method Details
-
getHandlerList
-
getHandlers
- Specified by:
getHandlersin classEvent
-
getType
- Returns:
- The type of data that has been updated for that warp.
-