From 1d951fb5cf0017c23283753774109a680ca19dd6 Mon Sep 17 00:00:00 2001 From: Olof Larsson Date: Mon, 29 Apr 2013 10:26:15 +0200 Subject: [PATCH] Let's allow the allowed people --- src/com/massivecraft/factions/cmd/CmdFactionsAccessFaction.java | 2 +- src/com/massivecraft/factions/cmd/CmdFactionsAccessPlayer.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com/massivecraft/factions/cmd/CmdFactionsAccessFaction.java b/src/com/massivecraft/factions/cmd/CmdFactionsAccessFaction.java index d76d8d83..8046673e 100644 --- a/src/com/massivecraft/factions/cmd/CmdFactionsAccessFaction.java +++ b/src/com/massivecraft/factions/cmd/CmdFactionsAccessFaction.java @@ -31,7 +31,7 @@ public class CmdFactionsAccessFaction extends CmdFactionsAccessAbstract if (newValue == null) return; // FPerm - if (FPerm.ACCESS.has(usender, hostFaction, true)) return; + if (!FPerm.ACCESS.has(usender, hostFaction, true)) return; // Apply ta = ta.withFactionId(faction.getId(), newValue); diff --git a/src/com/massivecraft/factions/cmd/CmdFactionsAccessPlayer.java b/src/com/massivecraft/factions/cmd/CmdFactionsAccessPlayer.java index 9f47cc4a..e8ed2365 100644 --- a/src/com/massivecraft/factions/cmd/CmdFactionsAccessPlayer.java +++ b/src/com/massivecraft/factions/cmd/CmdFactionsAccessPlayer.java @@ -31,7 +31,7 @@ public class CmdFactionsAccessPlayer extends CmdFactionsAccessAbstract if (newValue == null) return; // FPerm - if (FPerm.ACCESS.has(usender, hostFaction, true)) return; + if (!FPerm.ACCESS.has(usender, hostFaction, true)) return; // Apply ta = ta.withPlayerId(uplayer.getId(), newValue);