How to get a player's UUID?

Hi, how can I get a online player’s UUID?

Well if you have a Player-object you just do player.getUniqueId():smiley:

1 Like

While i know you said online player and blue has answered that.

You can do the exact same for the following.

User (Offline Player)
Entity (any entity)
GameProfile (never joined player)
1 Like

Thank you! Somehow my brain didn’t connect UUID to Unique Id