void ProcessEscapePacket(EscapePacket pkt) { Reconnect(new ReconnectPacket() { Host = "", Port = 2050, GameId = World.NEXUS_ID, Name = "Nexus", Key = Empty<byte>.Array, }); }
private void ProcessEscapePacket(EscapePacket pkt) { try { World world = RealmManager.GetWorld(Player.Owner.Id); if (world.Id == World.NEXUS_ID) { SendPacket(new TextPacket() { Stars = -1, BubbleTime = 0, Name = "", Text = "You are already at the Nexus!" }); return; } Reconnect(new ReconnectPacket() { Host = "", Port = 2050, GameId = World.NEXUS_ID, Name = "Nexus", Key = Empty<byte>.Array, }); } catch { logger.Error("Error while sending EscapePacket, Check Client.cs"); } }