So for this particular OT, guilds are not a player managed thing at all?
You are re-purposing the guild system to be factions instead. That's fine, and I would probably do the same think if I were making such a server. In which case the code I provided should work, presuming you are on a 0.X...