File tree Expand file tree Collapse file tree
type.lobby/src/main/java/net/swofty/type/lobby/parkour Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -129,12 +129,14 @@ public void startParkour(HypixelPlayer player) {
129129 }
130130
131131 public void finishedParkour (HypixelPlayer player ) {
132- Long startTime = perPlayerStartTime .get (player .getUuid ()). startTime ( );
133- if (startTime == null ) {
132+ RunData runData = perPlayerStartTime .get (player .getUuid ());
133+ if (runData == null || runData . startTime () == null ) {
134134 player .sendMessage ("§cYou haven't started the parkour challenge yet! Use §e/parkour start §cto start!" );
135135 return ;
136136 }
137137
138+ long startTime = runData .startTime ();
139+
138140 int lastCheckpointIndex = perPlayerStartTime .get (player .getUuid ()).lastCheckpointIndex ();
139141 if (lastCheckpointIndex != parkour .getCheckpoints ().size () - 2 ) {
140142 player .sendMessage ("§cYou must go through all checkpoints before finishing the parkour challenge!" );
You can’t perform that action at this time.
0 commit comments