public void Initialize(IPluginManager loader, IPlugin[] plugins) { try { this.config = loader.GetPluginSetting <LongMessageFilterConfig>(this.Name); } catch (System.Exception e) { Logger.DebugLog(e.ToString()); this.config = null; } if (this.config == null) { this.config = new LongMessageFilterConfig(); } }
public void Initialize(IPluginManager loader, IPlugin[] plugins) { try { this.config = loader.GetPluginSetting <BWListConfigs>(this.Name); } catch (System.Exception e) { Logger.DebugLog(e.ToString()); this.config = null; } if (this.config == null) { this.config = new BWListConfigs(); } this.config.Initialize(); }
private static WelcomeSchedulerConfig LoadCofig(IPluginManager loader) { WelcomeSchedulerConfig config; try { config = loader.GetPluginSetting <WelcomeSchedulerConfig>(NAME); } catch (System.IO.FileNotFoundException) { config = null; } catch (System.Exception e) { Logger.DebugLog(e.ToString()); config = null; } if (config == null) { config = new WelcomeSchedulerConfig(); } LoadAdditionalConfig(loader, config); config.Init(); return(config); }
public void Initialize(IPluginManager loader, IPlugin[] plugins) { this.config = loader.GetPluginSetting <LongMessageFilterConfig>(this.Name); }
public void Initialize(IPluginManager loader, IPlugin[] plugins) { this.config = loader.GetPluginSetting <UserDefinedSchedulerConfig>(this.Name); Reload(loader); }
public void Initialize(IPluginManager loader, IPlugin[] plugins) { this.config = loader.GetPluginSetting <BWListConfigs>(this.Name); this.config.Initialize(); }