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