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 LoginClient_OnDisconnect(object sender, SessionCloseEventArgs e) { Log.WriteLine(LogLevel.Debug, "{0} Disconnected.", base.Host); ClientManager.Instance.RemoveClient(this); }