Paper
Paper copied to clipboard
Add PlayerGetRespawnLocationEvent
There is a non-trivial amount of work done to determine a safe location to respawn a player. This event simply provides for plugin developers to provide their own, known respawn location event to save on any performance implications with determining a respawn location.
Hi! Will this resolve https://github.com/PaperMC/Paper/issues/9081? Also see this
Hi! Will this resolve #9081? Also see this
Moved! Thanks. I'm not sure this patch is really meant to solve that issue which sounds more like plugin funkyness. If this inadvertently fixes that somehow, then huzzah.
I understand this could arguably called PlayerPreRespawnEvent... ish. Open to renaming suggestions if need be.
i think thats a good name for it.
Decided to go ahead and rename it to Pre
Does it makes sense to include the respawn reason here for more context ?
Sure why not
This event is called in that weird place where some changes are not persisted, i think this should be stated somewhere in the documentation like the respawn event