Description
The server crashes when a player unloads a chunk while a plugin listens to PlayerChunkUnloadEvent.
I created a small demo plugin and will attach it to this issue. The plugin only listens to the PlayerChunkUnloadEvent and logs when its fired. There is no complex logic involved.
Crash log: https://mclo.gs/emiRKi8
Demo Plugin: shredded-test-plugin-1.0.0-SNAPSHOT.jar.zip
Steps to reproduce
- Start a ShreddedPaper server.
- Put the attached test plugin into the
plugins folder.
- Join the server.
- Move around until the player unloads chunks.
- As soon as a player unloads a chunk, the server crashes.
Expected behavior
Plugins should be able to listen to PlayerChunkUnloadEvent safely without crashing the server.
Actual behavior
The server crashes during the player chunk unload process.
java.lang.IllegalStateException: Cannot get chunk from a region that is not ours!
Description
The server crashes when a player unloads a chunk while a plugin listens to
PlayerChunkUnloadEvent.I created a small demo plugin and will attach it to this issue. The plugin only listens to the PlayerChunkUnloadEvent and logs when its fired. There is no complex logic involved.
Crash log: https://mclo.gs/emiRKi8
Demo Plugin: shredded-test-plugin-1.0.0-SNAPSHOT.jar.zip
Steps to reproduce
pluginsfolder.Expected behavior
Plugins should be able to listen to
PlayerChunkUnloadEventsafely without crashing the server.Actual behavior
The server crashes during the player chunk unload process.