public static void _OnClientDisconnect(object o) { try { if (o != null) { PlayerMgr s = (PlayerMgr)o; s.PrintLastPack(); s.Disconnect("normal"); } } catch (Exception) { } }