From 11cf5ba5c0584d7155c9e054fd04d3785855ecff Mon Sep 17 00:00:00 2001 From: glorydark <1083215364@qq.com> Date: Wed, 21 Feb 2024 22:55:07 +0800 Subject: [PATCH] Tweak --- .../glorydark/DLevelEventPlus/event/PlayerEventListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/glorydark/DLevelEventPlus/event/PlayerEventListener.java b/src/main/java/glorydark/DLevelEventPlus/event/PlayerEventListener.java index 8c2dfc6..0c2af56 100644 --- a/src/main/java/glorydark/DLevelEventPlus/event/PlayerEventListener.java +++ b/src/main/java/glorydark/DLevelEventPlus/event/PlayerEventListener.java @@ -245,7 +245,7 @@ public void PlayerGameModeChangeEvent(PlayerGameModeChangeEvent event) { if (PermissionAPI.isAdmin(player)) { return; } - if (PermissionAPI.isOperator(player, player.getLevel())) { + if (PermissionAPI.isOperator(player, level)) { return; } if (!bool) {