Merge pull request #472 from Glitchfinder/master

Alleviating excessive lag.
This commit is contained in:
Glitchfinder 2013-01-10 11:25:59 -08:00
commit ff4832a6a2

View File

@ -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) {