From d4bd6a5883a4a57145ae2a221191eae052e4caa8 Mon Sep 17 00:00:00 2001 From: Angelillo15 Date: Wed, 1 May 2024 18:08:50 +0200 Subject: [PATCH] Add bypass check --- .../java/com/nookure/staff/paper/command/FreezeCommand.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/NookureStaff-Paper/src/main/java/com/nookure/staff/paper/command/FreezeCommand.java b/NookureStaff-Paper/src/main/java/com/nookure/staff/paper/command/FreezeCommand.java index 592f3abf..a803494e 100644 --- a/NookureStaff-Paper/src/main/java/com/nookure/staff/paper/command/FreezeCommand.java +++ b/NookureStaff-Paper/src/main/java/com/nookure/staff/paper/command/FreezeCommand.java @@ -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 optionalTarget = playerWrapperManager.getPlayerWrapper(player); if (optionalTarget.isEmpty()) {