Discovered that the TCCount was not correctly counting TCs per player.

This code:

var cupboard = entity.gameObject.GetComponentInParent();
foreach (ProtoBuf.PlayerNameID playerNameOrID in cupboard.authorizedPlayers) {
   if (player)
      playercups.Add(entity);
}

Needs to be changed to this:

var cupboard = entity.gameObject.GetComponentInParent();
if (player && cupboard.IsAuthed(player))
   playercups.Add(entity);

The original code isn't actually checking to see if the player is authed to a specific TC and ultimately just counts all the TCs that already exist.  I was wondering why players weren't laying down TCs in their bases.  Of course no one said anything until I noticed my son couldn't lay one down and it was telling him he had reached his max TC auth limit which couldn't be true because he just built his first base.

This is helpful. Anything else need fixing in with this plugin?