Posted March 1, 20232 yr Hi all! I want to use players as keys for a hashmap. Actually I use the name as String: player.getName().getString() But there must be a better field for a unique identifier of the player that I'm missing... Can someone help me plz? Thx! Edited March 1, 20232 yr by Zacomat provided more detail
March 1, 20232 yr 4 hours ago, Zacomat said: But there must be a better field for a unique identifier of the player that I'm missing... The player UUID? You can get that directly on the player entity itself.
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.