mirror of
https://github.com/bloodmc/GriefDefender.git
synced 2024-11-25 12:45:48 +01:00
Fix user claim resize permission check.
This commit is contained in:
parent
4ccfda01f9
commit
73d1e514f4
@ -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) {
|
||||
|
@ -1564,7 +1564,7 @@ private void handleResizeStart(InteractEvent event, Player player, Location<Worl
|
||||
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user