[SOLVED] Player:GetUniqueID vs Player:GetUUID
#1
When I must to use Player:GetUniqueID and Player:GetUUID?
Reply
Thanks given by:
#2
cPlayer:GetUniqueID returns the ID of the entity of the player, while GetUUID returns the (mojang) UUID of the player. The UUID is from the mojang servers if the server is in online mode. Otherwise it is generated.

UniqueID is only valid while the player is logged in. When the server restarts or the player logs of he gets a different Unique ID.
Reply
Thanks given by: DrMasik
#3
GetUniqueID is a server internal ID, which is unique across entities, This is primarily used for apis that work with entities. UUID returns the player UUID, (which is not necessarily unique) which only players have, and is persistent across multiple logins. It is primarily used for the login apis.
Reply
Thanks given by: DrMasik




Users browsing this thread: 3 Guest(s)