void ZoneClient_OnDisconnect(object sender, SessionCloseEventArgs e) { ClientManager.Instance.RemoveClient(this); if (Character != null) { Character.Save(); Character.RemoveFromMap(); } Log.WriteLine(LogLevel.Debug, "Client disconnected."); }
void WorldClient_OnDisconnect(object sender, SessionCloseEventArgs e) { Log.WriteLine(LogLevel.Debug, "{0} Disconnected.", this.Host); ClientManager.Instance.RemoveClient(this); }