void OnPlayerInit(BasePlayer player) { Clan clan = Clan.AllClans.FirstOrDefault(x => x.Members.Contains(player.userID)); if (clan == null) { Instance.PrintError("could not find player clan"); return; } clan.AddMemberToTeamUI(player); }