Put this function in a better place.

This commit is contained in:
GJ
2013-08-20 15:12:38 -04:00
parent 83c4d09093
commit c8c76f4174
4 changed files with 14 additions and 11 deletions

View File

@ -780,9 +780,10 @@ public class AdvancedConfig extends AutoUpdateConfigLoader {
}
// Check if there were any errors
if (Misc.noErrorsInConfig(reason)) {
if (noErrorsInConfig(reason)) {
mcMMO.p.debug("No errors found in " + fileName + "!");
} else {
}
else {
mcMMO.p.getLogger().warning("Errors were found in " + fileName + "! mcMMO was disabled!");
mcMMO.p.getServer().getPluginManager().disablePlugin(mcMMO.p);
mcMMO.p.noErrorsInConfigFiles = false;