Package com.melluh.servertours.api.event
Class RoutePlaybackEndEvent
java.lang.Object
org.bukkit.event.Event
com.melluh.servertours.api.event.RouteEvent
com.melluh.servertours.api.event.RoutePlayerEvent
com.melluh.servertours.api.event.RoutePlaybackEndEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
Triggered when a tour ends, whether it was finished completely or exited prematurely.
If the event is cancelled the tour restarts at the first point.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
ConstructorDescriptionRoutePlaybackEndEvent
(TouringPlayer touringPlayer, RoutePlaybackEndEvent.EndReason reason) -
Method Summary
Modifier and TypeMethodDescriptionstatic org.bukkit.event.HandlerList
org.bukkit.event.HandlerList
boolean
void
setCancelled
(boolean cancel) Methods inherited from class com.melluh.servertours.api.event.RoutePlayerEvent
getBukkitPlayer, getTouringPlayer
Methods inherited from class com.melluh.servertours.api.event.RouteEvent
getRoute, getRouteName
Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
RoutePlaybackEndEvent
-
-
Method Details
-
getReason
-
getHandlers
public org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlers
in classorg.bukkit.event.Event
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList() -
isCancelled
public boolean isCancelled()- Specified by:
isCancelled
in interfaceorg.bukkit.event.Cancellable
-
setCancelled
public void setCancelled(boolean cancel) - Specified by:
setCancelled
in interfaceorg.bukkit.event.Cancellable
- Parameters:
cancel
- true if you wish to cancel this event
-