-
New Feature
-
Resolution: Unresolved
-
Minor
-
None
-
None
-
1.17
-
Yes
I have a plugin that stores some data about each chunk in a database. Since Spigot only provides ChunkLoadEvent, there is no way to load the data before the chunk has finished loading.
Spigot should have a AsyncPreChunkLoadEvent that is called asynchronously when a chunk is scheduled for loading, so that the data from the database can be loaded simultaneously.
Also, there should be some synchronisation mechanism for the chunk loading thread to wait for the database thread to finish, before successfully loading the chunk (and calling ChunkLoadEvent).
Implemented by PR