mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-12-31 21:48:31 +01:00
Fix Configurate conversions not saving
This commit is contained in:
parent
d903e40a53
commit
36a070be4c
@ -189,7 +189,7 @@ public class EssentialsUpgrade {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void convertStupidCamelCaseUserdataKeys() {
|
public void convertStupidCamelCaseUserdataKeys() {
|
||||||
if (doneFile.getBoolean("updateUsersLegacyPathNames", false)) {
|
if (doneFile.getBoolean("updateUsersStupidLegacyPathNames", false)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -232,12 +232,13 @@ public class EssentialsUpgrade {
|
|||||||
config.removeProperty("acceptingPay");
|
config.removeProperty("acceptingPay");
|
||||||
config.setProperty("accepting-pay", isPay);
|
config.setProperty("accepting-pay", isPay);
|
||||||
}
|
}
|
||||||
|
config.blockingSave();
|
||||||
} catch (final RuntimeException ex) {
|
} catch (final RuntimeException ex) {
|
||||||
LOGGER.log(Level.INFO, "File: " + file.toString());
|
LOGGER.log(Level.INFO, "File: " + file.toString());
|
||||||
throw ex;
|
throw ex;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
doneFile.setProperty("updateUsersLegacyPathNames", true);
|
doneFile.setProperty("updateUsersStupidLegacyPathNames", true);
|
||||||
doneFile.save();
|
doneFile.save();
|
||||||
LOGGER.info("Done converting legacy userdata keys to Configurate.");
|
LOGGER.info("Done converting legacy userdata keys to Configurate.");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user