private void SendPlayerList(NetConnection connection) { var response = new MyEventGetPlayerListResponse(); response.PlayerList = new List<MyPlayerInfo>(MyMultiplayerPeers.Static.Players.Select(s => RemotePlayerToInfo(s))); var me = new MyPlayerInfo() { DisplayName = MyClientServer.LoggedPlayer.GetDisplayName().ToString(), Faction = MySession.Static.Player.Faction, PlayerId = MyEntityIdentifier.CurrentPlayerId, UserId = MyClientServer.LoggedPlayer.GetUserId(), }; response.PlayerList.Add(me); LogPlayerList(ref response); Peers.NetworkClient.Send(ref response, connection, NetDeliveryMethod.ReliableOrdered, 0); }