mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-01-28 10:31:33 +01:00
Merge pull request #472 from Glitchfinder/master
Alleviating excessive lag.
This commit is contained in:
commit
ff4832a6a2
@ -38,10 +38,12 @@ public class WorldListener implements Listener {
|
|||||||
mcMMO.placeStore.unloadWorld(event.getWorld());
|
mcMMO.placeStore.unloadWorld(event.getWorld());
|
||||||
}
|
}
|
||||||
|
|
||||||
@EventHandler
|
// This gets called every 45 seconds, by default.
|
||||||
public void onWorldSave(WorldSaveEvent event) {
|
// The call can and does result in excessive lag, especially on larger servers.
|
||||||
mcMMO.placeStore.saveWorld(event.getWorld());
|
//@EventHandler
|
||||||
}
|
//public void onWorldSave(WorldSaveEvent event) {
|
||||||
|
// mcMMO.placeStore.saveWorld(event.getWorld());
|
||||||
|
//}
|
||||||
|
|
||||||
@EventHandler
|
@EventHandler
|
||||||
public void onChunkUnload(ChunkUnloadEvent event) {
|
public void onChunkUnload(ChunkUnloadEvent event) {
|
||||||
|
Loading…
Reference in New Issue
Block a user