Buildings affect your plunder cap. These buildings give most plunder cap:
guild lvl4
circle
sub an avary
lvl3 guild
cathedral
avary and sub
plundrr cap is based a bit soley on the building, and guild lvl4 has the highest cap. T3s are second, followed by lvl3 guilds, and then t2s
the other part of plunder cap depends on your strength comparison with your defender, only based on build. Guilds are considered "weaker" so earn more plunder. The first list, is what gives nost total plunder cap overal