Skip to content

Commit

Permalink
set gamemode even if there isnt a valid course
Browse files Browse the repository at this point in the history
  • Loading branch information
456dev committed Aug 1, 2023
1 parent b46acc6 commit 48575b1
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,11 @@ public void onVisitorArrive(IslandEnterEvent e) {
user.notify("parkour.no-end-yet");
} else if (!parkourRunManager.getTimers().containsKey(e.getPlayerUUID())) {
user.notify("parkour.to-start");
if (island.getFlag(addon.CREATIVE_FLAG) <= island.getRank(user)) {
user.setGameMode(GameMode.CREATIVE);
} else {
user.setGameMode(GameMode.SURVIVAL);
}
}
if (island.getFlag(addon.CREATIVE_FLAG) <= island.getRank(user)) {
user.setGameMode(GameMode.CREATIVE);
} else {
user.setGameMode(GameMode.SURVIVAL);
}
}

Expand Down

0 comments on commit 48575b1

Please sign in to comment.