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
1 changed files with 4 additions and 3 deletions

View File

@ -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?