Save users asynchronously

This commit is contained in:
riking
2014-06-03 20:52:22 -07:00
committed by TfT_02
parent 6d719988bf
commit 4fb4d6fc0c
10 changed files with 21 additions and 12 deletions

View File

@ -27,7 +27,7 @@ public class AddlevelsCommand extends ExperienceCommand {
profile.addLevels(skill, value);
if (player == null) {
profile.save();
profile.scheduleAsyncSave();
return;
}

View File

@ -28,7 +28,7 @@ public class AddxpCommand extends ExperienceCommand {
}
else {
profile.addXp(skill, value);
profile.save();
profile.scheduleAsyncSave();
}
}

View File

@ -29,7 +29,7 @@ public class MmoeditCommand extends ExperienceCommand {
profile.modifySkill(skill, value);
if (player == null) {
profile.save();
profile.scheduleAsyncSave();
return;
}

View File

@ -110,7 +110,7 @@ public class SkillresetCommand implements TabExecutor {
profile.modifySkill(skill, 0);
if (player == null) {
profile.save();
profile.scheduleAsyncSave();
return;
}