Want a better Minecraft server? Read about SpigotMC here!
Separate names with a comma.
Discussion in 'Spigot Plugin Development' started by Bjarge, Aug 15, 2018.
Hi! How would I get a value from my second config, Thanks!
Same way you get it from a normal "config.yml" file, what exactly is the question?
How would I define which config I'm getting the value from though?
If you have something like this:
public File whateverFile = new File(getDataFolder()+"/whatever.yml");
public FileConfiguration whatever = YamlConfiguration.loadConfiguration(whateverFile);
You should be able to do "whatever.getString(...);"
Check out this https://www.spigotmc.org/wiki/config-files/
oml stop asking so many questions. go watch a tutorial or, you know, google it