From f8c52285c161f57ab4709d777e186458736adf35 Mon Sep 17 00:00:00 2001 From: ProSavage Date: Wed, 17 Oct 2018 16:16:49 -0500 Subject: [PATCH] Door permission fixed ( relationally ) --- .../factions/listeners/FactionsPlayerListener.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/massivecraft/factions/listeners/FactionsPlayerListener.java b/src/main/java/com/massivecraft/factions/listeners/FactionsPlayerListener.java index 9b00bef8..80a4ddba 100644 --- a/src/main/java/com/massivecraft/factions/listeners/FactionsPlayerListener.java +++ b/src/main/java/com/massivecraft/factions/listeners/FactionsPlayerListener.java @@ -17,6 +17,7 @@ import com.massivecraft.factions.util.FactionGUI; import com.massivecraft.factions.util.Particles.ParticleEffect; import com.massivecraft.factions.util.VisualizeUtil; import com.massivecraft.factions.zcore.fperms.Access; +import com.massivecraft.factions.zcore.fperms.Permissable; import com.massivecraft.factions.zcore.fperms.PermissableAction; import com.massivecraft.factions.zcore.persist.MemoryFPlayer; import com.massivecraft.factions.zcore.util.TL; @@ -305,7 +306,8 @@ public class FactionsPlayerListener implements Listener { Access access = otherFaction.getAccess(me, action); boolean doTerritoryEnemyProtectedCheck = true; - if (action.equals(PermissableAction.CONTAINER)) { + if (action.equals(PermissableAction.CONTAINER) || + action.equals(PermissableAction.DOOR)) { if (access == Access.ALLOW) { doTerritoryEnemyProtectedCheck = false; }