Need to get the old value
This commit is contained in:
parent
7b63c8db93
commit
1ad4865911
@ -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;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user