public override void Init(ITorchBase torch) { torch.GameStateChanged += OnGameStateChanged; var pgmr = new PBProfilerManager(torch); torch.Managers.AddManager(pgmr); _config = Persistent <ProfilerConfig> .Load(Path.Combine(StoragePath, "PBLimiter.cfg")); server = torch; Log.Info("PBLimiter loaded!"); }
public override void Init(ITorchBase torch) { torch.GameStateChanged += OnGameStateChanged; var pgmr = new PBProfilerManager(torch); torch.Managers.AddManager(pgmr); _config = Persistent <ProfilerConfig> .Load(Path.Combine(StoragePath, "PBLimiter.cfg")); server = torch; ProfilerConfig.PlayerOverrides.CollectionChanged += PlayerOverrides_CollectionChanged; PBPlayerTracker.OnListChanged(); Log.Info("PBLimiter loaded!"); }