From 513e4c56ad9a50c8ce7ca7d980a5ad99d4df7db5 Mon Sep 17 00:00:00 2001 From: youpaishidifu Date: Mon, 13 Jul 2026 13:43:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=8B=BE=E5=8F=96/=E4=B8=A2?= =?UTF-8?q?=E5=BC=83=E6=9D=83=E9=99=90=EF=BC=9Aper-player=E7=8B=AC?= =?UTF-8?q?=E7=AB=8B=E6=8E=88=E6=9D=83=E9=94=AE=E5=90=8D=E6=98=A0=E5=B0=84?= =?UTF-8?q?(allowPickup=E2=86=94denyPickup)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/Sdf1_login/AreaProtection.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/java/Sdf1_login/AreaProtection.java b/src/main/java/Sdf1_login/AreaProtection.java index 19bc8cb..468ef08 100644 --- a/src/main/java/Sdf1_login/AreaProtection.java +++ b/src/main/java/Sdf1_login/AreaProtection.java @@ -2832,6 +2832,13 @@ public class AreaProtection implements Listener { if (playerPerms.containsKey(permName)) { return playerPerms.get(permName); } + // ★ allowPickup/allowDrop 与 denyPickup/denyDrop 键名反转映射 + if ("denyPickup".equals(permName) && playerPerms.containsKey("allowPickup")) { + return !playerPerms.get("allowPickup"); + } + if ("denyDrop".equals(permName) && playerPerms.containsKey("allowDrop")) { + return !playerPerms.get("allowDrop"); + } } // 回退到领地默认权限