read from another plugin's .yml ??? help pls

Discussion in 'Plugin Development' started by Jeff.Halbert, Aug 9, 2012.

Thread Status:
Not open for further replies.
  1. Offline


    I'm trying to get data from another plugin's config.yml. Is there a way to just read from the file in a similar way I would read from my own config.yml? Or do I have to copy and paste the file into my own data folder and load it as a custom config?
  2. Offline


    I don't know whether this works, but it looks good :)
    FileConfiguration pluginYml = YamlConfiguration.loadConfiguration(Bukkit.getPluginManager().getPlugin("NotMyPlugin").getResource("plugin.yml"));
    String name = pluginYml.getString("name");
    String version = ...
  3. Offline


    sd5 it looks good syntatically. I hope it works logically at runtime... lol. Thanks man.
Thread Status:
Not open for further replies.

Share This Page