Fix user claim resize permission check.

This commit is contained in:
bloodshot 2020-02-02 10:12:16 -05:00
parent 4ccfda01f9
commit 73d1e514f4
2 changed files with 2 additions and 2 deletions

View File

@ -1302,7 +1302,7 @@ private void handleResizeStart(PlayerInteractEvent event, Player player, Locatio
if (!playerData.canManageAdminClaims) { if (!playerData.canManageAdminClaims) {
playerCanResize = false; playerCanResize = false;
} }
} else if (!player.getUniqueId().equals(claim.getOwnerUniqueId())) { } else if (!player.getUniqueId().equals(claim.getOwnerUniqueId()) || !player.hasPermission(GDPermissions.CLAIM_RESIZE)) {
playerCanResize = false; playerCanResize = false;
} }
if (!playerCanResize) { if (!playerCanResize) {

View File

@ -1564,7 +1564,7 @@ private void handleResizeStart(InteractEvent event, Player player, Location<Worl
if (!playerData.canManageAdminClaims) { if (!playerData.canManageAdminClaims) {
playerCanResize = false; playerCanResize = false;
} }
} else if (!player.getUniqueId().equals(claim.getOwnerUniqueId())) { } else if (!player.getUniqueId().equals(claim.getOwnerUniqueId()) || !player.hasPermission(GDPermissions.CLAIM_RESIZE)) {
playerCanResize = false; playerCanResize = false;
} }
if (!playerCanResize) { if (!playerCanResize) {