(thanks chew) Fix older MC versions not loading config files

Fixes #4716
This commit is contained in:
nossr50 2022-01-11 19:28:18 -08:00
parent db0ae36fa7
commit 405de477d3

View File

@ -62,7 +62,14 @@ public abstract class BukkitConfig {
mcMMO.p.getLogger().info("[config] Loading config from disk: " + fileName);
YamlConfiguration config = new YamlConfiguration();
config.options().indent(4);
try {
config.options().parseComments(true);
} catch (NoSuchMethodError e) {
//e.printStackTrace();
mcMMO.p.getLogger().severe("Your Spigot/CraftBukkit API is out of date, update your server software!");
}
config.options().copyDefaults(true);
try {