Fire a regionChangeEvent for the API or regionEnterEvent and regionLeaveEvent.
LadyCailinBot opened this issue ยท 4 comments
WORLDGUARD-3183 - Reported by worstboy32
Please add a custom event for when players change regions (join|leave).
It needs to have the from and to location, or maybe even better the from and to region which would be null if you enter region from a regionless location.
And of course it needs to have the player and maybe some other wg related stuff.
There is already a part in the code but it's commented out.
Comment by sk89q
The region while I am hesitant to do this is because slow plugins will show up in WG's timings. I'm not the biggest fan of timings: they don't tell the full story.
Comment by worstboy32
Could this still be implemented?
It's kinda anoying having to implement this myself every time I wanna update the plugin.
possible with session handlers already, which are much more efficient.
general event stuff is #1533 but this will likely not make the cut unless someone has a good argument