internal void HandleClientJoinedMessage(Message message) { var playerId = message.PlayerId; research.UnlockTechForJoiningPlayer(playerId); //V27 for SE 1.192 DuckUtils.SetPlayerReputation(playerId, "MIKI", 0); // V37 to force CRASH faction DuckUtils.PutPlayerIntoFaction(playerId, "CRASH"); if (!RegisteredPlayers.Contains(playerId)) { //V26 fix no player in DS ulong steamID = 0; if (MyAPIGateway.Session.Player != null) { steamID = MyAPIGateway.Session.Player.SteamUserId; } var msgBytes = Encoding.UTF8.GetBytes(MyAPIGateway.Utilities.SerializeToXML(new Message { SenderSteamId = steamID, MessageType = MessageType.ClearToolbar, PlayerId = playerId })); MyAPIGateway.Multiplayer.SendMessageTo(ModId, msgBytes, message.SenderSteamId); } }