/** * Creates and sends the map update message type * @param str the string that will be udpdated to players text * @param player the player to send the update message to */ static void SendUpdateMessage(String str, Player player) { UpdateChat UC = new UpdateChat(); UC.message = str; MemoryStream stream = UC.WriteData(player.Salt); player.Socket.Send(stream.ToArray()); }