Class AsyncProfileLoadEvent
java.lang.Object
org.bukkit.event.Event
io.github.thebusybiscuit.slimefun4.api.events.AsyncProfileLoadEvent
public class AsyncProfileLoadEvent
extends org.bukkit.event.Event
This
Event
is called when the PlayerProfile
of a Player
is loaded into memory.
The AsyncProfileLoadEvent
is called asynchronously and can be used to "inject"
a custom PlayerProfile
if necessary.- Author:
- TheBusyBiscuit
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.bukkit.event.HandlerList
org.bukkit.event.HandlerList
void
setProfile
(PlayerProfile profile) This method can be used to inject your customPlayerProfile
implementations.Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
AsyncProfileLoadEvent
-
-
Method Details
-
getPlayerUUID
-
getProfile
-
setProfile
This method can be used to inject your customPlayerProfile
implementations. However, the passedPlayerProfile
must have the sameUUID
as the original one!- Parameters:
profile
- ThePlayerProfile
-
getHandlerList
@Nonnull public static org.bukkit.event.HandlerList getHandlerList() -
getHandlers
@Nonnull public org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlers
in classorg.bukkit.event.Event
-