#Getting Player by UUID

30 messages · Page 1 of 1 (latest)

wind urchin
#

I wanted to create a leaderboard system. Using player UUIDs who may not be on the server at the time. Is there a built in function in fabric or would I need to request off the api.

merry rock
#

it has to exist within minecraft itself, as offline mode is a thing

wind urchin
#

Wym

wind urchin
merry rock
#

no, player data is stored by uuid, and since those uuids still work in offline mode minecraft has to have something to convert that

#

hmm

#

though that might be because the client sends its uuid along with its name when joining

wind urchin
#

like check for players that way.

#

On Player Join (Server) -> logs UUID and info

stiff moon
#

What?

stiff moon
wind urchin
#

I was just saying your using a mixin. But couldn't I just have the server get the player UUID, Username and then access that. Since it seems that their is not actually method todo this I'd need to create an api request to mojang?

#

Cause I also wanna pull their face texture

stiff moon
#

I even have some code that does exactly what you are trying to do (I think) that I could find lol

wind urchin
merry rock
#

you could, and then store the uuids in a map of playername & uuid somewhere

wind urchin
#

or is there just an event the server could use? Since this mod really only works with a server its intended for multiplayer use

merry rock
stiff moon
wind urchin
#

I may of overlooked I thought I saw a code linked to a mixin lol

stiff moon
#

Also if I correctly understand what you want then do you even need usernames?

wind urchin
stiff moon
#

Ah

wind urchin
# stiff moon Ah

Also what reference is type? I check'd yours and didn't see a Type class with any of your imported namespaces.