Hello. Is it possible to get a different plugins config? If so how would i do so? I have tried: PHP: $this->getServer()->getDataFolder() but thats no help since it doesnt work.
Yes you can. There are two ways. Load the config yourself or get it from plugin object. About the code; I don't see how it could work. If the function exists then probably only returns a string, the path to server directory.
Every plugin has a getDataFolder() method. PHP: $folder = $server->getPluginManager()->getPlugin($pluginName)->getDataFolder();$configFile = $folder . "config.yml"; If the plugin uses the getConfig method, you can use it directly too. Note that editing the file doesn't mean the plugin will change its behaviour immediately.