[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:
Relates
relates to SPIGOT-151 Add "Read only" mode for worlds Resolved

 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?
I don't understand this.

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.

Generated at Thu Mar 27 03:54:24 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.