Interface UniqueIdDetermineTypeEvent
- All Superinterfaces:
LuckPermsEvent,ResultEvent<String>
Called when the platform needs to determine the type of a player's
unique id.- Since:
- 5.3
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe players UUID has been obtained by authenticating with the Mojang session servers.static final StringThe players UUID most likely belongs to a NPC (non-player character).static final StringThe players UUID has not been obtained through authentication, and instead is likely based on the username they connected with.static final StringUnknown UUID type. -
Method Summary
Methods inherited from interface net.luckperms.api.event.LuckPermsEvent
getEventType, getLuckPermsMethods inherited from interface net.luckperms.api.event.type.ResultEvent
hasResult, result
-
Field Details
-
TYPE_AUTHENTICATED
The players UUID has been obtained by authenticating with the Mojang session servers.Usually indicated by the UUID being
version4.- See Also:
-
TYPE_UNAUTHENTICATED
The players UUID has not been obtained through authentication, and instead is likely based on the username they connected with.Usually indicated by the UUID being
version3.- See Also:
-
TYPE_NPC
The players UUID most likely belongs to a NPC (non-player character).Usually indicated by the UUID being
version2.- Since:
- 5.4
- See Also:
-
TYPE_UNKNOWN
Unknown UUID type.- Since:
- 5.4
- See Also:
-
-
Method Details
-
getUniqueId
Gets theunique idbeing queried.- Returns:
- the unique id
-
getType
Gets the current result unique id type.- Returns:
- the type
-
setType
Sets the result unique id type.- Parameters:
type- the type
-