Jump to content

[1.12.2] How to get a player from UUID if the player is offline


SaltStation

Recommended Posts

Hello everyone,

I want to get an EntityPlayerMP object by using a UUID but my current method only works if the player in question is online.

Is there a way to get a list of all Players who where on the server at some point?

 

Current Method:

Spoiler

MinecraftServer server = FMLCommonHandler.instance().getMinecraftServerInstance();
player = server.getPlayerList().getPlayerByUUID(id);

 

I want to get the statistcmanagerserver from the player by the way.

Edited by SaltStation
Forgot something
Link to comment
Share on other sites

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.