Class LookupProfileEvent

java.lang.Object
org.bukkit.event.Event
com.destroystokyo.paper.event.profile.LookupProfileEvent

@NullMarked public class LookupProfileEvent extends Event
Allows a plugin to be notified anytime AFTER a Profile has been looked up from the Mojang API This is an opportunity to view the response and potentially cache things.

No guarantees are made about thread execution context for this event. If you need to know, check Event.isAsynchronous()

  • Constructor Details

    • LookupProfileEvent

      @Internal public LookupProfileEvent(PlayerProfile profile)
  • Method Details

    • getName

      public String getName()
      Gets the name of the profile that was looked up.
      Returns:
      the name of the profile
    • getId

      public UUID getId()
      Gets the UUID of the profile that was looked up.
      Returns:
      the UUID of the profile
    • getPlayerProfile

      @Deprecated(forRemoval=true, since="1.21.9") public PlayerProfile getPlayerProfile()
      Deprecated, for removal: This API element is subject to removal in a future version.
      This event is only called after UUID lookups, properties set here will be ignored. Use FillProfileEvent for setting properties.
      Returns:
      The profile that was recently looked up. This profile can be mutated
    • getHandlers

      public HandlerList getHandlers()
      Specified by:
      getHandlers in class Event
    • getHandlerList

      public static HandlerList getHandlerList()