Class ParkourPlayerFinishEvent
java.lang.Object
org.bukkit.event.Event
me.block2block.hubparkour.api.events.ParkourEvent
me.block2block.hubparkour.api.events.player.ParkourPlayerEvent
me.block2block.hubparkour.api.events.player.ParkourPlayerFinishEvent
- All Implemented Interfaces:
Cancellable
Called when a user finishes the parkour successfully.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionParkourPlayerFinishEvent(IParkour parkour, IHubParkourPlayer player, long parkourTime, long parkourFinishTimestamp, long parkourStartTimestamp) -
Method Summary
Modifier and TypeMethodDescriptionlongGet the timestamp the user finished.longGet the timestamp the user started the parkour.longGet the time, in milliseconds, of the time the user took to finish the parkour.Methods inherited from class me.block2block.hubparkour.api.events.player.ParkourPlayerEvent
getPlayer, isCancelled, setCancelledMethods inherited from class me.block2block.hubparkour.api.events.ParkourEvent
getHandlerList, getHandlers, getParkourMethods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
ParkourPlayerFinishEvent
public ParkourPlayerFinishEvent(IParkour parkour, IHubParkourPlayer player, long parkourTime, long parkourFinishTimestamp, long parkourStartTimestamp)
-
-
Method Details
-
getParkourFinishTimestamp
public long getParkourFinishTimestamp()Get the timestamp the user finished. This is in milliseconds.- Returns:
- the finish timestamp.
-
getParkourStartTimestamp
public long getParkourStartTimestamp()Get the timestamp the user started the parkour. This is in milliseconds.- Returns:
- the start timestamp.
-
getParkourTime
public long getParkourTime()Get the time, in milliseconds, of the time the user took to finish the parkour.- Returns:
- the time in ms.
-