aromaa / WorldGuardExtraFlags

Extension for the WorldGuard plugin.
https://www.spigotmc.org/resources/worldguard-extra-flags.4823
MIT License
90 stars 71 forks source link

Fix spawn location event #192

Closed Phoenix616 closed 2 years ago

Phoenix616 commented 2 years ago

This fixes compatibility of the join-location with other plugins that change a player's spawn location.

Previously moving the spawn location of a player out of a region with the join-location flag set was not possible with another plugin modifying the spawn location in the event due WorldGuardExtraFlags using the old player location from the Player object to query the flag and not the (potentially) modified location from the event.

aromaa commented 2 years ago

Thanks, seems to be oversight on my end.