Disable Folia support, add event api.
Hi all,
This update brings the following changes to InvSee++:
- Support for the Folia server software has been disabled in this version. It was experimental for a long while, and it never really worked completely. I still want to implement proper support at some point, but this is a non-trivial task due to the fact that inventory spectator views combine inventories managed by multiple entity schedulers.
- InvSee++ now as an event api, starting out with two events:
- Added SpectatorInventoryOfflineCreatedEvent. This event is called when a SpectatorInventory is created for an offline player.
- Added SpectatorInventorySaveEvent which is called when InvseeApi#saveInventory or InvseeApi#saveEnderchest is called by plugins. This also happens when admin players close a spectator inventory.
I know the first point is not good news, but I'd rather have a safe but more limited featureset than cause data corruption on servers for now. Thank you for your understanding.