mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-03 15:08:18 +01:00
[trunk] Catch the case where the upgrade is called before the config.yml file exists.
We don't need to update then. git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1237 e251c2fe-e539-e718-e476-b85c1f46cddb
This commit is contained in:
parent
468f646e6e
commit
74c8b634a0
@ -23,6 +23,9 @@ public class EssentialsUpgrade {
|
||||
private void moveWorthValuesToWorthYml(File dataFolder) {
|
||||
try {
|
||||
File configFile = new File(dataFolder, "config.yml");
|
||||
if (!configFile.exists()) {
|
||||
return;
|
||||
}
|
||||
EssentialsConf conf = new EssentialsConf(configFile);
|
||||
conf.load();
|
||||
Worth w = new Worth(dataFolder);
|
||||
|
Loading…
Reference in New Issue
Block a user