Fixed issue with ownerclaims, players with permission can now build/destroy.

This commit is contained in:
ProSavage 2018-07-12 11:21:53 -05:00
parent 1a2b0ac965
commit b0d41c032a

View File

@ -108,8 +108,9 @@ public class FactionsBlockListener implements Listener {
if (access == Access.DENY) { if (access == Access.DENY) {
me.msg(TL.GENERIC_NOPERMISSION, action); me.msg(TL.GENERIC_NOPERMISSION, action);
return false; return false;
} } 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 return true; // has to be allow
} }