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();
|
||||||
|
|
||||||
|
@ -166,11 +166,12 @@ public class mcMMO extends JavaPlugin {
|
|||||||
@Override
|
@Override
|
||||||
public void onDisable() {
|
public void onDisable() {
|
||||||
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
|
||||||
placeStore.saveAll(); // Save our metadata
|
PartyManager.saveParties(); // Save our parties
|
||||||
placeStore.cleanUp(); // Cleanup empty metadata stores
|
placeStore.saveAll(); // Save our metadata
|
||||||
|
placeStore.cleanUp(); // Cleanup empty metadata stores
|
||||||
}
|
}
|
||||||
catch (NullPointerException e) {}
|
catch (NullPointerException e) {}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user