Class NamesAndUUIDs
java.lang.Object
com.janboerman.invsee.spigot.internal.NamesAndUUIDs
Cache for player usernames and unique IDs.
Instance can be obtained via
InvseeAPI.namesAndUuidsLookup()
.- See Also:
- API Note:
- this API is not stable (yet).
-
Field Summary
Modifier and TypeFieldDescriptionfinal List
<NameResolveStrategy> The list of strategies used to resolve players' usernames.protected static final boolean
protected static final boolean
final List
<UUIDResolveStrategy> The list of strategies used to resolve players' unique IDs. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cacheNameAndUniqueId
(UUID uuid, String userName) Cache a player's unique ID and username.Get the known mappings from UUID to username.Get the known mappings from username to unique ID.final boolean
onlineMode
(Server server) Is the server in online mode? This method will consider servers behind a proxy in online mode as online.resolveUserName
(UUID uniqueId) Resolve a player's username, given their unique ID.resolveUUID
(String username) Resolve a player's unique ID, given their username.
-
Field Details
-
SPIGOT
protected static final boolean SPIGOT -
PAPER
protected static final boolean PAPER -
uuidResolveStrategies
The list of strategies used to resolve players' unique IDs. Strategies are attempted in order. -
nameResolveStrategies
The list of strategies used to resolve players' usernames. Strategies are attempted in order.
-
-
Constructor Details
-
NamesAndUUIDs
Deprecated.internal api
-
-
Method Details
-
onlineMode
Is the server in online mode? This method will consider servers behind a proxy in online mode as online. -
getUuidCache
-
getUserNameCache
-
cacheNameAndUniqueId
-
resolveUUID
Resolve a player's unique ID, given their username. -
resolveUserName
Resolve a player's username, given their unique ID.
-