Plex-FAWE/worldedit-bukkit
Jordan d7543884a5
Check cached bukkit player is the same as the current player online (#1732)
* Check cached bukkit player is the same as the current player online
 - If plugins do silly things like teleport, deop (anything that requires a perm-recheck) (anything that ultimately requires a BukkitPlayer at some point) then the retention of metadata by the server (as it's stored based on a string value indescriminate of player a player relogging) means that a BukkitPlayer caching an old player object will be kept, cached and retrieved by FAWE. Adding a simple memory-based equality check when the player rejoins, and then "invaliding" (redoing) the cache if the players are not equal, fixes this.
 - Fixes #1730

* Address comments

* Add comment explaining reference equality check to code
2022-05-10 10:10:59 +02:00
..
adapters [ci skip] build: Update dependency io.papermc.paperweight.userdev:io.papermc.paperweight.userdev.gradle.plugin to v1.3.6 (#1720) 2022-04-25 17:17:23 +02:00
src Check cached bukkit player is the same as the current player online (#1732) 2022-05-10 10:10:59 +02:00
build.gradle.kts build: Update dependency net.kyori:adventure-nbt to v4.9.3 (#1658) 2022-03-14 16:14:10 +01:00