Update WorldListener.java

Config wasn't being saved Async!
This commit is contained in:
jameslfc19 2020-07-12 16:03:29 +01:00
parent ae0e35fe3b
commit 4d80974431
1 changed files with 2 additions and 2 deletions

View File

@ -16,14 +16,14 @@ public class WorldListener implements Listener {
@EventHandler
public void onWorldSave(WorldSaveEvent event){
if(!justSaved){
Config.save();
Config.saveASync();
justSaved = true;
new BukkitRunnable(){
@Override
public void run() {
justSaved = false;
}
}.runTaskLater(ChestsPlusPlus.PLUGIN,5);
}.runTaskLater(ChestsPlusPlus.PLUGIN,20);
}
}