Posted April 22, 201510 yr Hi. I have a player cache system that saves a player's UUID and displayname to a json file whenever a new player joins. That way I can get the players displayname for display purposes using the players UUID. However, I would like to know if it is possible to retrieve an EntityPlayer from a player's UUID. If so, how? I have looked through the EntityPlayer class and found nothing. Any help is highly appreciated.
April 22, 201510 yr Yes, it is possible - did you try searching the forums / Google? It has been asked several times already. IIRC, there is a method in World that should work; if not, take a look at EntityTameable, as that retrieves players by UUID. http://i.imgur.com/NdrFdld.png[/img]
April 22, 201510 yr Looks like func_152378_a in World does this. I'll do some research in Google though, just to make sure.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.