private void Proxy_Client_OnClientDisconnected() { if (FakeClient.IsRunning) { FakeClient.Disconnect(); } }
public static void HandleSelectedServerDataMessage(FakeClient client, SelectedServerDataMessage message) { client.Disconnect(true); client.Ticket = new string(message.ticket.Select(x => (char)x).ToArray()); client.WorldIp = message.address; client.WorldPort = message.port; //client.Connect(message.address, message.port); }
public static void HandleSelectedServerDataMessage(FakeClient client, SelectedServerDataMessage message) { client.Disconnect(true); //client.Ticket = message.ticket; client.Connect(message.address, message.port); }