Skip to content
This repository has been archived by the owner on Feb 27, 2024. It is now read-only.

Player.getUUID(); Returns null #83

Closed
tommy1019 opened this issue Nov 23, 2014 · 7 comments
Closed

Player.getUUID(); Returns null #83

tommy1019 opened this issue Nov 23, 2014 · 7 comments

Comments

@tommy1019
Copy link

Player.getUUID(); always returns null.
Player.getUniqueID() works but it is not clearly defined what kind of uuid that is: a online player uuid, a entity uuid, or a offline player uuid.
Either way there shouldn't be a method that just returns null.

@Voltasalt
Copy link

Good point. I don't think there's any ambiguity though, for players all the UUID types are identical.

@tommy1019
Copy link
Author

Really, there is no way to access the entity uuid of the player?

@olliestanley
Copy link

Should rename the method in Entity to getEntityID(); in my opinion and have it work in Player as well as getUniqueID(); for the player ID.

@Jckf
Copy link

Jckf commented Nov 25, 2014

That should be Id with a lowercase d, in my opinion. getUUID() should never have existed, as acronyms should be treated as words (getUuid).

@olliestanley
Copy link

@Jckf Personally hate now the lowercase looks but it's all personal preference I guess :P

@Voltasalt
Copy link

@tommy1019 @DziNeIT You OK with removing getUUID() since it doesn't work? And I don't know what you mean by "entity uuid"? AFAIK, a player entity's UUID is the player's profile UUID.

@olliestanley
Copy link

@Voltasalt that system is fine, but in that case there should definitely only be one getter for a UUID, so yeah remove the one that doesn't work.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants