Interface UniqueIdDetermineTypeEvent

All Superinterfaces:
LuckPermsEvent, ResultEvent<String>

public interface UniqueIdDetermineTypeEvent extends LuckPermsEvent, ResultEvent<String>
Called when the platform needs to determine the type of a player's unique id.
Since:
5.3
  • Field Details

    • TYPE_AUTHENTICATED

      static final String TYPE_AUTHENTICATED
      The players UUID has been obtained by authenticating with the Mojang session servers.

      Usually indicated by the UUID being version 4.

      See Also:
    • TYPE_UNAUTHENTICATED

      static final String 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 version 3.

      See Also:
    • TYPE_NPC

      static final String TYPE_NPC
      The players UUID most likely belongs to a NPC (non-player character).

      Usually indicated by the UUID being version 2.

      Since:
      5.4
      See Also:
    • TYPE_UNKNOWN

      static final String TYPE_UNKNOWN
      Unknown UUID type.
      Since:
      5.4
      See Also:
  • Method Details

    • getUniqueId

      @NonNull UUID getUniqueId()
      Gets the unique id being queried.
      Returns:
      the unique id
    • getType

      default @NonNull String getType()
      Gets the current result unique id type.
      Returns:
      the type
    • setType

      default void setType(@NonNull String type)
      Sets the result unique id type.
      Parameters:
      type - the type