getUID
public String getUID()
Gets the globally unique ID of the player. This ID will never change, even if the player joins another server. For Steam users, this method returns the SteamID64.
Returns:
the globally unique player ID as a string.
Example: Display the UID of the player1
//The UID is a 64 bit number, so we have to use a long
2
long playerUID = player.getUID();
When I try to use this example I get an error flag that A string cannot be converted to a Long? The JAVADOC uses public String when discussing it then the example shows long. I guess I can convert it but wanted to get clarification.