mirror of
https://github.com/bloodmc/GriefDefender.git
synced 2024-11-29 13:25:19 +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) {
|
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) {
|
||||||
|
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user