From b0d41c032a66d63e9e0cc4c9806842628e597900 Mon Sep 17 00:00:00 2001 From: ProSavage Date: Thu, 12 Jul 2018 11:21:53 -0500 Subject: [PATCH] Fixed issue with ownerclaims, players with permission can now build/destroy. --- .../factions/listeners/FactionsBlockListener.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/massivecraft/factions/listeners/FactionsBlockListener.java b/src/main/java/com/massivecraft/factions/listeners/FactionsBlockListener.java index 20468035..88a641e3 100644 --- a/src/main/java/com/massivecraft/factions/listeners/FactionsBlockListener.java +++ b/src/main/java/com/massivecraft/factions/listeners/FactionsBlockListener.java @@ -108,9 +108,10 @@ public class FactionsBlockListener implements Listener { if (access == Access.DENY) { me.msg(TL.GENERIC_NOPERMISSION, action); return false; - } - - return true; // has to be allow + } else if (myFaction.getOwnerListString(loc) != null && !myFaction.getOwnerListString(loc).isEmpty() && !myFaction.getOwnerListString(loc).contains(player.getName())) return false; + else + // the perm is true, so it can build + return true; // has to be allow } // cancel building/destroying in other territory?