Currently in Spigot, there is no way to listen for when entities despawn.
An example of the event can be found here: https://github.com/Bukkit/Bukkit/pull/1070
It would be extremely useful for allowing plugins to store non-metadata information that gets removed when the entity is despawned.
- relates to
-
SPIGOT-3366 No event called when non-living entity is removed
- Resolved