[SPIGOT-113] Add a way to see when a chunk is persisted. Created: 03/Dec/14 Updated: 11/Jul/16 Resolved: 11/Jul/16 |
|
Status: | Resolved |
Project: | Spigot |
Component/s: | None |
Affects Version/s: | None |
Fix Version/s: | None |
Type: | New Feature | Priority: | Minor |
Reporter: | RyanTheLeach | Assignee: | md_5 |
Resolution: | Fixed | Votes: | 0 |
Labels: | None |
Issue Links: |
|
Description |
There is currently ChunkLoadEvent, ChunkUnloadEvent, and WorldSaveEvent. WorldSaveEvent is fired during worldsaves, which should occur on server stopping, optionally during world unloading, and during autosaves. However it is not fired when chunks are unloaded and persisted. I propose that either a ChunkSaveEvent or a method on ChunkUnloadEvent should be introduced in order to catch this corner case. Additionally I believe that WorldSaveEvents are currently only being thrown on server stop, not on autosaves, or manual save-all. |
Comments |
Comment by md_5 [ 27/May/15 ] |
What do you mean unloaded and persisted? |
Comment by RyanTheLeach [ 05/Dec/14 ] |
WorldSaveEvent was fixed in a previous patch, would still be nice to get a isChunkSaved method on the unload event or if that doesn't cover all use cases a chunk save event. |