Exemplo n.º 1
0
        public void Dispose()
        {
            GlobalBlockPalette.Clear();

            this.Logger?.Dispose();
            this.Worlds.Clear();
            this.Plugin?.Dispose();
            this.Command?.Dispose();
            this.Network?.Dispose();
            this.NetworkSocket?.Dispose();
            this.Clock?.Dispose();

            Instance = null;
        }
Exemplo n.º 2
0
        public void Dispose(Stopwatch sw)
        {
            GlobalBlockPalette.Clear();

            this.Worlds.Clear();
            this.Plugin?.Dispose();
            this.Command?.Dispose();
            this.Network?.Dispose();
            IO.Logger.Info("%server.network.stop", sw.Elapsed.ToString(@"mm\:ss\.fff"));
            this.NetworkSocket?.Dispose();
            sw.Stop();
            IO.Logger.Info("%server.stoped", sw.Elapsed.ToString(@"mm\:ss\.fff"));
            this.Clock?.Dispose();

            Instance = null;
        }