On the server side, this event would coincide with the server shutdown event (just like how the load world event coincides with the server startup event), but on the client, this event would coincide with closing a singleplayer world or disconnecting from a server.
On the server side, this event would coincide with the server shutdown event (just like how the load world event coincides with the server startup event), but on the client, this event would coincide with closing a singleplayer world or disconnecting from a server.