Paper
Paper copied to clipboard
Fix OfflinePlayer#getPlayerProfile returning deprecated type
OfflinePlayer has a method, getPlayerProfile, that returns the deprecated bukkit PlayerProfile type. This changes that to use our interface which is a subtype of bukkit's. Additionally, to maintain API compatibility, this rewrites plugins still expecting the old type.
Maybe a .paper() method inside the Bukkit PlayerProfile can also improve the upgrading experience to paper's solution?
We've already hardline no'd a paper() method, it just creates so much pointless call cludge to avoid the odd cases where upstream does something which screws us over, and just creates a messy dev experience