I'm using universal Clans and Friends at the same time. If a player is not AutoAuthed by some other means, removing the player from your team results in them being deauthorized from objects you placed even if team sharing is completely disabled. I'm pretty sure I fixed it by adding a check to see if team sharing is enabled under the 'private void UpdateTeamAuthList(List<ulong> teamMembers)' method.
Config
{
"Clear Share Data On Map Wipe": true,
"Friends share settings": {
"Enabled": true,
"Share cupboard": true,
"Share turret": true,
"Key lock settings": {
"Enabled": false,
"Share door": false,
"Share box": false,
"Share other locked entities": false
},
"Code lock settings": {
"Enabled": true,
"Share door": true,
"Share box": true,
"Share other locked entities": true
}
},
"Clan share settings": {
"Enabled": true,
"Share cupboard": true,
"Share turret": true,
"Key lock settings": {
"Enabled": false,
"Share door": false,
"Share box": false,
"Share other locked entities": false
},
"Code lock settings": {
"Enabled": true,
"Share door": true,
"Share box": true,
"Share other locked entities": true
}
},
"Team share settings": {
"Enabled": false,
"Share cupboard": false,
"Share turret": false,
"Key lock settings": {
"Enabled": false,
"Share door": false,
"Share box": false,
"Share other locked entities": false
},
"Code lock settings": {
"Enabled": false,
"Share door": false,
"Share box": false,
"Share other locked entities": false
}
},
"Chat settings": {
"Send authorization success message": true,
"Chat command": "autoauth",
"Chat prefix": "[AutoAuth]: ",
"Chat prefix color": "#00FFFF",
"Chat steamID icon": 0
}
}My hack
private void UpdateTeamAuthList(List<ulong> teamMembers)
{
// Original if statement
// if (teamMembers.Count <= 0) return;
//My if statement: Also do Nothing if Team Share Settings Enabled is set to false in the main config file.
if (teamMembers.Count <= 0 || !configData.teamShareS.enabled) return;
foreach (var member in teamMembers)
UpdateAuthList(member, AutoAuthType.All);
}