MadManMarkAu/MultiHome — pull request #7 by JorenCombs (2011-12-03 04:11:25+00:00)
Title: I added support for multiple permissions groups

So, we run a server with multiple permissions groups, and we noticed that MultiHome was just grabbing the first group the person happened to belong to, which is bad if that group is the one with no MultiHome configuration :). Our permissions model is permissive; that is, if you belong to ANY groups giving you the right to do something, then you have the right to do it. We wanted to have players belonging to one group with the MultiHome rights, and another group with some other rights. However, we noticed that players could no longer set homes if the other group happened to be the first entry in the PEX permissions yml.

So... I rewrote your Permissions and Settings functions. Hope you like? There is a switch called "Most permissive" which means that if user belongs to two groups and one has a higher right than the other (e.g. -1 max homes instead of 10), user will be given the better one. "Least permissive" means user will receive the
worst of the two rights. Also fixed a few spelling errors and replaced a setting of 0 for false and 1 for true with a call to the config boolean get function.

Anyway, have fun, I left the stuff I overwrote commented out so you could see what the changes were. Hope it makes sense :D

-- Joren