You are viewing an older version of the site. Click here to view
the latest version of this page. (This may be a dead link, if so, try the root page of the docs
here.)
== puuid ==
[[../objects/ms.lang.NotFoundException|ms.lang.NotFoundException]] |- ! scope="row" | Since | 3.3.1 |- ! scope="row" | Restricted |
Returns the UUID of the current player or the specified player. If dashless is set to true, the returned UUID format will not have any dashes. This will attempt to find an offline player, but if that also fails, a PlayerOfflineException will be thrown.
=== Vital Info ===
{| style="width: 40%;" cellspacing="1" cellpadding="1" border="1" class="wikitable"
|-
! scope="col" width="20%" |
! scope="col" width="80%" |
|-
! scope="row" | Name
| puuid
|-
! scope="row" | Returns
| string
|-
! scope="row" | Usages
| [player], [dashless]
|-
! scope="row" | Throws
| [[../objects/com.commandhelper.PlayerOfflineException|com.commandhelper.PlayerOfflineException]][[../objects/ms.lang.NotFoundException|ms.lang.NotFoundException]] |- ! scope="row" | Since | 3.3.1 |- ! scope="row" | Restricted |
No
|-
! scope="row" | Optimizations
| None
|}It is not recommended to give this user input. If the player is offline and hasn't visited the server recently (so that they're not in the user cache), the server may block the main thread with an HTTP request to Mojang's servers.
=== Usages ===
puuid([player], [dashless])=== Examples === Sorry, there are no examples for this function! :(
Find a bug in this page? Edit this page yourself, then submit a pull request. (Note this page is automatically generated from the documentation in the source code.)