Fixed issue with ownerclaims, players with permission can now build/destroy.
This commit is contained in:
parent
1a2b0ac965
commit
b0d41c032a
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user