#Questions about lag with finding OfflinePlayer via username

1 messages · Page 1 of 1 (latest)

wanton wing
#

Heya 👋

I've been updating a few of our custom plugins to 1.16.5+ and most seem to be working just fine, however for this one rather large plugin everytime Bukkit#getOfflinePlayer is used there is hella lag. Note, the specific method is the deprecated one using the usernames (as that's what the player passes to the command)

What's the best way to find the player via name since method is deprecated? aka finding the UUID from the name

patent sapphire
#

Run it async

#

It makes a call to Mojang servers

wanton wing
#

ahhh I figured it was the mojang API - i saw some people doing that manually or using NMS to get out of using the deprecated method

#

aight 👍 many thanks