On Carbon Version 2 . 0 . 151 . 0 Rust Version 744/2565.259.1 and probabbly the current oxide version too. You get the following error
Failed compiling 'TurretSwitches.cs':
1. 'HashSet<PlayerNameID>' does not contain a definition for 'Exists' and no accessible extension method 'Exists' accepting a first argument of type 'HashSet<PlayerNameID>' could be found (are you missing a using directive or an assembly reference?) [CS1061]
(TurretSwitches 72 line 171)to fix this you need to replace Line 171 with
return Turret.GetBuildingPrivilege().authorizedPlayers.Any(x => x.userid == player.userID);and Line 198 with
return SamSite.GetBuildingPrivilege().authorizedPlayers.Any(x => x.userid == player.userID);