1. How am I able to get a specific variable in the config of another plugin?
     
  2. You don't, unless it's exposed by the other plugin that allows you to get that value.
     
  3. damn
     
  4. Its actually possible but not recommended at all.
    Code:
    local externalData
    function PLUGIN:LoadExternalConfig()
        local configPath = self.Plugin.Manager.ConfigPath
        local fileName = configPath .. "/configfile.json"
        local externalConfig = new(self.Plugin.Config:GetType(), nil)
        externalConfig:Load(fileName)
        externalData = externalConfig
    end
     
  5. Thats why I sent you that PM :)
     
  6. Sheesh, such nonsense for easy stuff...
    Code:
            private object GetConfigVarFromPlugin(string pluginName, params string[] configKeyPath)
            {
                foreach (var p in Manager.GetPlugins())
                {
                    if (p.Name == pluginName)
                    {
                        if (p.HasConfig && p.Config != null)
                            return p.Config.Get(configKeyPath);
                    }
                }
                return null;
            }
    Example:
    Code:
    Puts(GetConfigVarFromPlugin("m-GatherRate", "Settings", "ChatName").ToString());
     
  7. already solved though, and not needed anymore.
    Still thanks, may be useful another time