Class NameMojangAPIStrategy
java.lang.Object
com.janboerman.invsee.spigot.api.resolve.NameMojangAPIStrategy
- All Implemented Interfaces:
NameResolveStrategy
A strategy which obtains usernames for players using the Mojang Rest API.
-
Constructor Summary
ConstructorDescriptionNameMojangAPIStrategy
(Plugin plugin, com.janboerman.invsee.mojangapi.MojangAPI mojangApi) -
Method Summary
-
Constructor Details
-
NameMojangAPIStrategy
-
-
Method Details
-
resolveUserName
Description copied from interface:NameResolveStrategy
Resove the player's username- Specified by:
resolveUserName
in interfaceNameResolveStrategy
- Parameters:
uniqueId
- the player's unique id- Returns:
- a future which, when completed, will supply the player's username optionally, if it could be found.
-