示例#1
0
        public void Initialize()
        {
            var logger = _logManager.GetSawmill("con.groups");

            _configurationManager.RegisterCVar("console.loginlocal", true, CVar.ARCHIVE);

            _playerManager.PlayerStatusChanged += _onClientStatusChanged;

            // load the permission groups in the console
            _groups = new ConGroupContainer(_resourceManager, logger);
            _groups.LoadGroups();

            // set up the session group container
            _sessions = new SessionGroupContainer(_configurationManager, logger);
        }
示例#2
0
        public void Initialize()
        {
            var logger = _logManager.GetSawmill("con.groups");

            _netManager.RegisterNetMessage <MsgConGroupUpdate>(MsgConGroupUpdate.Name);

            _playerManager.PlayerStatusChanged += _onClientStatusChanged;

            // load the permission groups in the console
            _groups = new ConGroupContainer(_resourceManager, logger);
            _groups.LoadGroups();

            // set up the session group container
            _sessions = new SessionGroupContainer(_configurationManager, logger);

            UpdateAllClientData();
        }