Skip to content

Commit

Permalink
Only remove start time and last position on final checkpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Redned235 committed Dec 27, 2024
1 parent 50bdcce commit d3d40d3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,11 @@ public void onMove(PlayerMoveEvent event, ArenaPlayer player) {

if (parkourMap.isFinalCheckpoint(pos)) {
this.getEventManager().callEvent(new ParkourCompleteEvent(this, player));
} else if (!initial) {
this.getEventManager().callEvent(new ParkourCheckpointEvent(this, player, checkpointNumber - 1));

player.removeMetadata(StartTime.class);
player.removeMetadata(LastPosition.class);
} else if (!initial) {
this.getEventManager().callEvent(new ParkourCheckpointEvent(this, player, checkpointNumber - 1));
}
}
}
Expand Down

0 comments on commit d3d40d3

Please sign in to comment.