Stopping outsiders from authorizing on someone else's TC?
ok so i have a server with some active players its a new server and im tryign to build a player base . but we have 2 particular players who just seem to enjoy waiting till ppl have built a base and then just to troll they raid it and authorize themselfs on ppls TC  they then build around the base and basicly just troll the original builder. i dont mind raiding i dont mind stealing loot from oppls base killing them but i realy dont want this sort of trolling behaviour as it is loosing me players. ppl dont mind being raided as long as they can go back rebuild their base and improve on it and try to defend it better . but this authorizing on someone elses tc  just ruins that for them. 

can anyone plz tell me if and how i can stop this ?
You can kickout this players ?
Use the hook OnCupboardClearList.  Whenever someone clears a cupboard, re-authorize the player with cupboard.ownerID.

// owner cant be cleared from cupboards
object OnCupboardClearList(BuildingPrivlidge privilege, BasePlayer player)
{
	NextFrame(() =>
	{
		privilege.authorizedPlayers.Add(new ProtoBuf.PlayerNameID
		{
			userid = privilege.ownerID,
			username = "Owner",
			ShouldPool = true
		});
	});
	return null;
}
​


Unfortunately it won't stop people from destroying it and placing a new one.

If it is a solo server, you can use the hook OnCupboardAuthorize and check vs the ownerID.

just make it a rule - no base griefing.
Its Rust and its part of the game, or you could use Wulf's plugin to make cupboards invulnerable and put a lock on it,
In which assembly is "Protobuf.PlayerNameID" ? I have reference to Protobuf but keep saying "PlayerNameID" does not exist in the namespace "Protobuf", You must add a reference to "Rust.Data".
Rust.Data I cannot find.. 
eugclass
In which assembly is "Protobuf.PlayerNameID" ? I have reference to Protobuf but keep saying "PlayerNameID" does not exist in the namespace "Protobuf", You must add a reference to "Rust.Data".
Rust.Data I cannot find.. 

RustDedicated_Data/Managed/Rust.Data.dll.

Well, think if someone should say it, it should be me. I am an idiot. 
ta Wulf