mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 13:16:45 +01:00
(thanks chew) Fix older MC versions not loading config files
Fixes #4716
This commit is contained in:
parent
db0ae36fa7
commit
405de477d3
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user