Cleanup: Properly log errors
This commit is contained in:
parent
02ef09c586
commit
a38f309453
|
@ -58,7 +58,7 @@ public class PriceRestrictionModule implements Listener {
|
||||||
configuration.options().copyDefaults(true);
|
configuration.options().copyDefaults(true);
|
||||||
configuration.save(ChestShop.loadFile("priceLimits.yml"));
|
configuration.save(ChestShop.loadFile("priceLimits.yml"));
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
e.printStackTrace();
|
ChestShop.getBukkitLogger().log(Level.SEVERE, "Error while loading priceLimits.yml", e);
|
||||||
}
|
}
|
||||||
} else if (!configuration.getBoolean("uses_materials")) {
|
} else if (!configuration.getBoolean("uses_materials")) {
|
||||||
Material testMat = Material.matchMaterial("1");
|
Material testMat = Material.matchMaterial("1");
|
||||||
|
@ -73,7 +73,7 @@ public class PriceRestrictionModule implements Listener {
|
||||||
configuration.save(file);
|
configuration.save(file);
|
||||||
ChestShop.getBukkitLogger().log(Level.INFO, "Conversion finished!");
|
ChestShop.getBukkitLogger().log(Level.INFO, "Conversion finished!");
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
e.printStackTrace();
|
ChestShop.getBukkitLogger().log(Level.SEVERE, "Error while converting priceLimits.yml", e);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
ChestShop.getBukkitLogger().log(Level.WARNING, "Could not convert numeric IDs in priceLimits.yml to Material names!");
|
ChestShop.getBukkitLogger().log(Level.WARNING, "Could not convert numeric IDs in priceLimits.yml to Material names!");
|
||||||
|
|
Loading…
Reference in New Issue