Class ParkourPlayerFinishEvent

All Implemented Interfaces:
Cancellable

public class ParkourPlayerFinishEvent extends ParkourPlayerEvent
Called when a user finishes the parkour successfully.
  • 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.