Problems with multiple worlds (multiverse inventories)
pgmann opened this issue ยท 3 comments
--- Imported from dev.bukkit.org ---
The plugin doesn't work well with multiverse inventories, as you lose all spectator items on world change (compass, clock, tools menu...).
We need to recreate the inventory when the world is changed.
Cf. Multiverse API, and the events.
Yes. Possibly use the Bukkit PlayerChangedWorldEvent instead of the API, to speed up porting when the time comes and better compatibility.
I thought maybe remove the spectator items before the teleport and give the spectator a fresh set afterwards (1 second later or so?).
Yes. Possibly use the Bukkit PlayerChangedWorldEvent instead of the API, to speed up porting when the time comes and better compatibility.
I wasn't aware of the existence of this event. It's better, you're right.
I thought maybe remove the spectator items before the teleport and give the spectator a fresh set afterwards (1 second later or so?).
Good idea.