From 73d1e514f46e19111d6fbb1895611de80f63519c Mon Sep 17 00:00:00 2001 From: bloodshot Date: Sun, 2 Feb 2020 10:12:16 -0500 Subject: [PATCH] Fix user claim resize permission check. --- .../java/com/griefdefender/listener/PlayerEventHandler.java | 2 +- .../java/com/griefdefender/listener/PlayerEventHandler.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bukkit/src/main/java/com/griefdefender/listener/PlayerEventHandler.java b/bukkit/src/main/java/com/griefdefender/listener/PlayerEventHandler.java index d5b96df..ccf025c 100644 --- a/bukkit/src/main/java/com/griefdefender/listener/PlayerEventHandler.java +++ b/bukkit/src/main/java/com/griefdefender/listener/PlayerEventHandler.java @@ -1302,7 +1302,7 @@ private void handleResizeStart(PlayerInteractEvent event, Player player, Locatio if (!playerData.canManageAdminClaims) { playerCanResize = false; } - } else if (!player.getUniqueId().equals(claim.getOwnerUniqueId())) { + } else if (!player.getUniqueId().equals(claim.getOwnerUniqueId()) || !player.hasPermission(GDPermissions.CLAIM_RESIZE)) { playerCanResize = false; } if (!playerCanResize) { diff --git a/sponge/src/main/java/com/griefdefender/listener/PlayerEventHandler.java b/sponge/src/main/java/com/griefdefender/listener/PlayerEventHandler.java index a67130c..3cf6a9f 100644 --- a/sponge/src/main/java/com/griefdefender/listener/PlayerEventHandler.java +++ b/sponge/src/main/java/com/griefdefender/listener/PlayerEventHandler.java @@ -1564,7 +1564,7 @@ private void handleResizeStart(InteractEvent event, Player player, Location