Skip to content

Commit

Permalink
Add bypass check
Browse files Browse the repository at this point in the history
  • Loading branch information
Angelillo15 committed May 1, 2024
1 parent 7eb91ba commit d4bd6a5
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,11 @@ protected void onStaffCommand(@NotNull StaffPlayerWrapper sender, @NotNull Strin
return;
}

if (player.hasPermission(Permissions.STAFF_FREEZE_BYPASS)) {
sender.sendMiniMessage(messages.get().freeze.freezeBypassMessage());
return;
}

Optional<PlayerWrapper> optionalTarget = playerWrapperManager.getPlayerWrapper(player);

if (optionalTarget.isEmpty()) {
Expand Down

0 comments on commit d4bd6a5

Please sign in to comment.