Multiple configs

Discussion in 'Spigot Plugin Development' started by Bjarge, Aug 15, 2018.

  1. Hi! How would I get a value from my second config, Thanks!
     
  2. Same way you get it from a normal "config.yml" file, what exactly is the question?
     
  3. How would I define which config I'm getting the value from though?
     
  4. If you have something like this:
    Code (Java):
    public File whateverFile = new File(getDataFolder()+"/whatever.yml");
    public FileConfiguration whatever = YamlConfiguration.loadConfiguration(whateverFile);
    You should be able to do "whatever.getString(...);"
     
    • Friendly Friendly x 1
    • Friendly Friendly x 1
  5. oml stop asking so many questions. go watch a tutorial or, you know, google it