Fix /rsc in admin claims (#300)
* Fix restrictsubclaim in admin claims * Allow players with /ignoreclaims on to toggle restrictsubclaim flag
This commit is contained in:
parent
f84ff64c24
commit
ad07915664
|
|
@ -1718,7 +1718,10 @@ public class GriefPrevention extends JavaPlugin
|
|||
return true;
|
||||
}
|
||||
|
||||
if(!player.getUniqueId().equals(claim.parent.ownerID))
|
||||
// If player has /ignoreclaims on, continue
|
||||
// If admin claim, fail if this user is not an admin
|
||||
// If not an admin claim, fail if this user is not the owner
|
||||
if(!playerData.ignoreClaims && (claim.isAdminClaim() ? !player.hasPermission("griefprevention.adminclaims") : !player.getUniqueId().equals(claim.parent.ownerID)))
|
||||
{
|
||||
GriefPrevention.sendMessage(player, TextMode.Err, Messages.OnlyOwnersModifyClaims, claim.getOwnerName());
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user