private static void Login(AuthClient client, bool autoconnect) { ServersManager.DisconnectAlreadyConnectedClient(client, client.Account.Id); AuthServer.Instance.AuthClients.Add(client); bool hasRights = false; if (client.Account.Role > ServerRoleEnum.PLAYER) { hasRights = true; } client.Send(new IdentificationSuccessMessage(hasRights, false, client.Account.Username, client.Account.Nickname, client.Account.Id, 0, "Supprimer ce personnage?", 2, 1, 0)); var characters = CharacterRecord.GetAccountCharacters(client.Account.Id); if (!autoconnect) { SendServerListMessage(client, characters.Count); return; } else { if (WorldServer.Instance.ServerState == ServerStatusEnum.ONLINE) { SelectedServer(null, client); } else { SendServerListMessage(client, characters.Count); } } }