getNameFromUUID: Get a name from a UUID

Description Usage Arguments Value Note Examples

Description

Uses Mojang's profiles API to get the current Minecraft ingame name for a UUID. Other way around is not (yet) implemented.

Usage

1

Arguments

uuid

The UUID used in the query.

Value

Either the appropriate username as a character vector or, if the UUID is not recognized as one, the input string is returned.

Note

Since an input string that does not match the UUID format is returned, the function can be called on a big list of UUIDs that may still, contain some Minecraft names, allowing for quick and dirty conversion.

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
> getNameFromUUID("Jemus42")
## Not recognized as UUID, returnes as is
[1] "Jemus42"
> getNameFromUUID("7aca357c-c26d-4e55-8b6e-87e349450156")
## Recognized as UUID, triggers query to Mojang
[1] "Jemus42"

## End(Not run)

jemus42/wurstmineR documentation built on May 19, 2019, 4:03 a.m.