Class LookupProfileEvent
java.lang.Object
org.bukkit.event.Event
com.destroystokyo.paper.event.profile.LookupProfileEvent
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()
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic HandlerList
getId()
Gets the UUID of the profile that was looked up.getName()
Gets the name of the profile that was looked up.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.Methods inherited from class org.bukkit.event.Event
callEvent, getEventContext, getEventName, isAsynchronous, isSupportInterrupt
-
Constructor Details
-
LookupProfileEvent
-
-
Method Details
-
getName
Gets the name of the profile that was looked up.- Returns:
- the name of the profile
-
getId
Gets the UUID of the profile that was looked up.- Returns:
- the UUID of the profile
-
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. UseFillProfileEvent
for setting properties.- Returns:
- The profile that was recently looked up. This profile can be mutated
-
getHandlers
- Specified by:
getHandlers
in classEvent
-
getHandlerList
-