Jump to content

[1.7.10] How do I get an EntityPlayer from a UUID?


Recommended Posts

Posted

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.

Posted

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.