Skip to content

Commit

Permalink
#335 - restart course should not reset the hideallenabled parkour tool
Browse files Browse the repository at this point in the history
  • Loading branch information
steve4744 committed Nov 18, 2022
1 parent 389b1c4 commit a81f46e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1294,7 +1294,9 @@ private void populatePlayersInventory(Player player) {
}

giveParkourTool(player, "ParkourTool.LastCheckpoint");
giveParkourTool(player, "ParkourTool.HideAll");
String configPath = parkour.getParkourSessionManager().hasHiddenPlayers(player)
? "ParkourTool.HideAllEnabled" : "ParkourTool.HideAll";
giveParkourTool(player, configPath);
giveParkourTool(player, "ParkourTool.Leave");
giveParkourTool(player, "ParkourTool.Restart");

Expand Down

0 comments on commit a81f46e

Please sign in to comment.