Need to get the old value

This commit is contained in:
Alexandre Vanhecke 2015-08-14 12:32:04 +02:00
parent 7b63c8db93
commit 1ad4865911

View File

@ -449,9 +449,12 @@ public final class Settings extends YamlConfiguration {
} }
if (contains("Hooks.notifications")) if (contains("Hooks.notifications"))
set("Hooks.notifications", null); set("Hooks.notifications", null);
if (contains("Hooks.chestshop")) boolean useChestShop = false;
if (contains("Hooks.chestshop")) {
useChestShop = getBoolean("Hooks.chestshop");
set("Hooks.chestshop", null); set("Hooks.chestshop", null);
set("Hooks.legacyChestshop", false); }
set("Hooks.legacyChestshop", useChestShop);
if (!contains("Email.generateImage")) { if (!contains("Email.generateImage")) {
set("Email.generateImage", true); set("Email.generateImage", true);
changes = true; changes = true;