Exemplo n.º 1
0
 public PluginManager(GuildHandler parent)
 {
     _parentHandler  = parent;
     _enabledPlugins = new CachedValue <List <string> >(new DoubleKeyJsonRepository("plugindata"), _parentHandler.GuildId, "EnabledPlugins", () => PluginLoader.GetPlugins().Where(x => PluginLoader.IsDefault(x)).Select(y => Plugin.GetFullName(y)).ToList());
     _enabledPlugins.Cache();
 }