On my server, some players may want to use multiple factions, for example one for sharing a town with friends, others for leasing areas to other players. The advantage of factions here is that the owner is not forced to manually update all the protectors to add or remove someone. The nonempty faction intersection algorithm is not appropriate for this use.
I implemented a faction list that behaves the same way as the member list: enter a list of factions, of which members are allowed to access the area.
My fork: git.txmn.tk/tuxmain/luanti-protector@39d43f643a
It is a breaking change (the checkbox is gone).
If you're interested in merging upstream, I can make my commit cleaner.
Also I had to fix the returns in playerfactions (reverted changes from this commit because functions that were seemingly supposed to returns lists or nil returned booleans (unless there is some Lua dark magic in there I don't understand).
On my server, some players may want to use multiple factions, for example one for sharing a town with friends, others for leasing areas to other players. The advantage of factions here is that the owner is not forced to manually update all the protectors to add or remove someone. The nonempty faction intersection algorithm is not appropriate for this use.
I implemented a faction list that behaves the same way as the member list: enter a list of factions, of which members are allowed to access the area.
My fork: https://git.txmn.tk/tuxmain/luanti-protector/commit/39d43f643ab347de31dab4a5593f78180e9d82ad
It is a breaking change (the checkbox is gone).
If you're interested in merging upstream, I can make my commit cleaner.
Also I had to fix the returns in `playerfactions` (reverted changes from [this commit](https://github.com/mt-mods/playerfactions/commit/c629b298f9d7888ad390360eccf3f065138807ce#diff-0fc5c43f6f1d7605fd7d16c088ba6b83f096eee8e2049517407bbaa27aa3a4f7) because functions that were seemingly supposed to returns lists or nil returned booleans (unless there is some Lua dark magic in there I don't understand).