Example #1
0
        private static void OnServerStatusChanged(ServerStatusType type, int time, int args)
        {
            switch (type)
            {
            case ServerStatusType.SHUTDOWN_STARTED:
                ClientConnectionManager.SendShutdownStartedMessageToConnections(LogicMath.Max(time - TimeUtil.GetTimestamp(), 0));
                break;

            case ServerStatusType.MAINTENANCE:
                ClientConnectionManager.DisconnectConnections();
                break;
            }
        }