Skip to content

Commit

Permalink
Reset elytra boosts while being in spawn box
Browse files Browse the repository at this point in the history
  • Loading branch information
booky10 committed Oct 4, 2023
1 parent 236dd76 commit 0528fa7
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ public void onMove(PlayerMoveEvent event) {
}

if (this.manager.inElytraBox(event.getPlayer().getLocation())) {
this.manager.setRemainingElytraBoosts(event.getPlayer(),
OptionalInt.of(this.manager.getConfig().getSpawnConfig().getElytraBoosts()));
this.manager.giveElytra(event.getPlayer());
return;
}
Expand Down

0 comments on commit 0528fa7

Please sign in to comment.