/// <summary> /// Indica que o usuário conectou ao world server. /// </summary> /// <param name="msg"></param> public static void UpdateUserStatus(NetIncomingMessage msg) { var accountID = msg.ReadInt32(); var username = msg.ReadString(); var server = Authentication.FindByConnection(msg.SenderConnection); int worldID = 0; if (server != null) { worldID = server.ID; } Authentication.AddAccount(accountID, username, worldID); LoginPacket.UpdateUserConnected(accountID); }