A Feudal system...
Guilds can set up a list of ranks, in which you can assign either a specific player or rank the power to access certain buildings/containers. and many other possibilities.
Guild leaders can establish treaties between each other, such as Non agression packs, Defensive Packs, Trade Packs, and Alliance.