From 75db3fcad3df1b91f7ef36c7b477730edda2a40d Mon Sep 17 00:00:00 2001 From: Joel Puig Rubio Date: Mon, 4 Sep 2017 22:58:23 +0200 Subject: [PATCH] Allow admins to claim for wilderness --- .../com/massivecraft/factions/zcore/persist/MemoryFPlayer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/massivecraft/factions/zcore/persist/MemoryFPlayer.java b/src/main/java/com/massivecraft/factions/zcore/persist/MemoryFPlayer.java index 340eddab..0ffcc1db 100644 --- a/src/main/java/com/massivecraft/factions/zcore/persist/MemoryFPlayer.java +++ b/src/main/java/com/massivecraft/factions/zcore/persist/MemoryFPlayer.java @@ -684,7 +684,7 @@ public abstract class MemoryFPlayer implements FPlayer { } public boolean canClaimForFaction(Faction forFaction) { - return !forFaction.isWilderness() && (this.isAdminBypassing() || (forFaction == this.getFaction() && this.getRole().isAtLeast(Role.MODERATOR)) || (forFaction.isSafeZone() && Permission.MANAGE_SAFE_ZONE.has(getPlayer())) || (forFaction.isWarZone() && Permission.MANAGE_WAR_ZONE.has(getPlayer()))); + return this.isAdminBypassing() || !forFaction.isWilderness() && (forFaction == this.getFaction() && this.getRole().isAtLeast(Role.MODERATOR)) || (forFaction.isSafeZone() && Permission.MANAGE_SAFE_ZONE.has(getPlayer())) || (forFaction.isWarZone() && Permission.MANAGE_WAR_ZONE.has(getPlayer())); } public boolean canClaimForFactionAtLocation(Faction forFaction, Location location, boolean notifyFailure) {