mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-10 18:38:18 +01:00
Fix _setMoney failing on upgrade.
git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1500 e251c2fe-e539-e718-e476-b85c1f46cddb
This commit is contained in:
parent
62fe52ee13
commit
bb804a5710
@ -99,9 +99,11 @@ public class Essentials extends JavaPlugin
|
||||
{
|
||||
setStatic();
|
||||
EssentialsUpgrade upgrade = new EssentialsUpgrade(this.getDescription().getVersion(), this);
|
||||
upgrade.beforeSettings();
|
||||
confList = new ArrayList<IConf>();
|
||||
settings = new Settings(this.getDataFolder());
|
||||
confList.add(settings);
|
||||
upgrade.afterSettings();
|
||||
Util.updateLocale(settings.getLocale(), this.getDataFolder());
|
||||
spawn = new Spawn(getServer(), this.getDataFolder());
|
||||
confList.add(spawn);
|
||||
|
@ -28,15 +28,6 @@ public class EssentialsUpgrade
|
||||
}
|
||||
alreadyRun = true;
|
||||
ess = essentials;
|
||||
if (!ess.getDataFolder().exists())
|
||||
{
|
||||
ess.getDataFolder().mkdirs();
|
||||
}
|
||||
moveWorthValuesToWorthYml();
|
||||
sanitizeAllUserFilenames();
|
||||
updateUsersToNewDefaultHome();
|
||||
moveUsersDataToUserdataFolder();
|
||||
convertWarps();
|
||||
}
|
||||
|
||||
private void moveWorthValuesToWorthYml()
|
||||
@ -376,4 +367,21 @@ public class EssentialsUpgrade
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
void beforeSettings()
|
||||
{
|
||||
if (!ess.getDataFolder().exists())
|
||||
{
|
||||
ess.getDataFolder().mkdirs();
|
||||
}
|
||||
moveWorthValuesToWorthYml();
|
||||
}
|
||||
|
||||
void afterSettings()
|
||||
{
|
||||
sanitizeAllUserFilenames();
|
||||
updateUsersToNewDefaultHome();
|
||||
moveUsersDataToUserdataFolder();
|
||||
convertWarps();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user