Ejemplo n.º 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);
        }
Ejemplo n.º 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();
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Clears the existing groups, and reloads from disk.
 /// </summary>
 public void ReloadGroups()
 {
     _groups.Clear();
     _groups.LoadGroups();
     UpdateAllClientData();
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Clears the existing groups, and reloads from disk.
 /// </summary>
 public void ReloadGroups()
 {
     _groups.Clear();
     _groups.LoadGroups();
 }