Jump to content

How can i set player.UniqueId on startup


clowcadia

Recommended Posts

players UUID is not reset when you exit the client the UUID is saved to the world 

EntityPlayer#readFromNBT()

  if (compound.hasUniqueId("UUID"))
            {
                this.entityUniqueID = compound.getUniqueId("UUID");
                this.cachedUniqueIdString = this.entityUniqueID.toString();
            }

 

Link to comment
Share on other sites

you problem is that when in a development environment forge uses "fake" minecraft accounts that change every game there are here is how to fix

 

it is kinda risky if you are really password overprotective

but in eclipse go to Run>Run Configurations>Java Application>Client>Arguments>Program Arguments then enter

--username=(your minecraft login email or username) --password=(your minecraft password)

No Parentheses Obviously

When you start the game next it will automatically log you in with your minecraft account

 

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.



×
×
  • Create New...

Important Information

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