Improved exception handling error messages.

This commit is contained in:
tastybento 2018-02-06 15:59:42 -08:00
parent 1e920825ef
commit 7e2f8052da

View File

@ -101,7 +101,7 @@ public abstract class Addon implements AddonInterface {
config = new YamlConfiguration();
config.load(yamlFile);
} catch (Exception e) {
e.printStackTrace();
Bukkit.getLogger().severe("Could not load YAML file: " + file);
}
}
return config;
@ -122,7 +122,7 @@ public abstract class Addon implements AddonInterface {
try {
this.config.save(new File(dataFolder, ADDON_CONFIG_FILENAME));
} catch (IOException e) {
e.printStackTrace();
Bukkit.getLogger().severe("Could not save config!");
}
}
@ -182,7 +182,7 @@ public abstract class Addon implements AddonInterface {
}
}
} catch (IOException e) {
e.printStackTrace();
Bukkit.getLogger().severe("Could not save from jar file. From " + jarResource + " to " + destinationFolder.getAbsolutePath());
}
}