public override void Attach()
        {
            base.Attach();

            _uplinkManager = Torch.Managers.GetManager <HiveUplinkManager>();
            if (_uplinkManager == null)
            {
                _log.Fatal("No hive uplink manager. HIVE DISABLED");
            }

            _sessionManager = Torch.Managers.GetManager <TorchSessionManager>();
            if (_sessionManager != null)
            {
                _sessionManager.SessionStateChanged += SessionChanged;
            }
            else
            {
                _log.Fatal("No session manager. FACTION HIVE DISABLED");
            }
        }
        public override void Init(ITorchBase torch)
        {
            string path = Path.Combine(StoragePath, "hive_uplink.cfg");

            _log.Info($"Attempting to load config from {path}");
            _config = Persistent <HiveConfig> .Load(path);

            if (_config.Data.HiveId == null && _config.Data.SectorId == null)
            {
                _log.Fatal($"Setup config and restart the server to enable hive uplink");
                return;
            }

            var manager = new HiveUplinkManager(torch, _config.Data);

            torch.Managers.AddManager(manager);

            var factionManager = new HiveFactionManager(torch);

            torch.Managers.AddManager(factionManager);
        }