Luohuayu / CatServer

高性能和高兼容性的1.12.2/1.16.5/1.18.2版本Forge+Bukkit+Spigot服务端 (A high performance and high compatibility 1.12.2/1.16.5/1.18.2 version Forge+Bukkit+Spigot server)
https://catmc.org
GNU Lesser General Public License v3.0
1.98k stars 211 forks source link

getOfflinePlayer() now returns null when a server is behind a bungee server despite the player having joined before. #355

Closed Rishum-P closed 3 years ago

Rishum-P commented 3 years ago

Recent commit (09b629c) causes getOfflinePlayer() to incorrectly return null when a server is behind a bungeecord server, despite the player having joined before. No longer does it return the correct OfflinePlayer, likely because it is returning an offline mode gameprofile, instead of the cached game profile.

Reverting the commit would fix it, or checking if the server bungee setting is true in spigot.yml and if so returning the cached GameProfile.