public VitalsPlugin(IConnectionManager connMgr, JObject config) { ConnectionManager = connMgr; Config = new VitalsConfig(config); NameToReader = new Dictionary <string, IVitalsReader>(); ConnectionManager.CommandManager.RegisterChannelMessageCommandHandler( new Command( CommandUtil.MakeNames("vitals", "vit"), CommandUtil.NoOptions, CommandUtil.MakeArguments( RestTaker.Instance // location ), CommandUtil.MakeTags("fun"), forbiddenFlags: MessageFlags.UserBanned ), HandleVitalsCommand ); RecreateReaders(); }
public virtual void ReloadConfiguration(JObject newConfig) { Config = new VitalsConfig(newConfig); PostConfigReload(); }