mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-23 05:36:46 +01:00
Clear after saving, save before clearing.
This commit is contained in:
parent
1fb28eeee0
commit
fa645b5e00
@ -23,6 +23,7 @@ public class MmoupdateCommand implements CommandExecutor {
|
|||||||
switch (args.length) {
|
switch (args.length) {
|
||||||
case 0:
|
case 0:
|
||||||
sender.sendMessage(LocaleLoader.getString("Commands.mmoupdate.Start"));
|
sender.sendMessage(LocaleLoader.getString("Commands.mmoupdate.Start"));
|
||||||
|
UserManager.saveAll();
|
||||||
UserManager.clearAll();
|
UserManager.clearAll();
|
||||||
convertToMySQL();
|
convertToMySQL();
|
||||||
|
|
||||||
|
@ -168,7 +168,8 @@ public class mcMMO extends JavaPlugin {
|
|||||||
try {
|
try {
|
||||||
reloadDisableHelper(); // Prevent Berserk from getting "stuck"
|
reloadDisableHelper(); // Prevent Berserk from getting "stuck"
|
||||||
UserManager.saveAll(); // Make sure to save player information if the server shuts down
|
UserManager.saveAll(); // Make sure to save player information if the server shuts down
|
||||||
PartyManager.saveParties();
|
UserManager.clearAll(); // Should always clear after saving
|
||||||
|
PartyManager.saveParties(); // Save our parties
|
||||||
placeStore.saveAll(); // Save our metadata
|
placeStore.saveAll(); // Save our metadata
|
||||||
placeStore.cleanUp(); // Cleanup empty metadata stores
|
placeStore.cleanUp(); // Cleanup empty metadata stores
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user