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.HandlerListorg.bukkit.event.HandlerListvoidsetProfile(PlayerProfile profile) This method can be used to inject your customPlayerProfileimplementations.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 customPlayerProfileimplementations. However, the passedPlayerProfilemust have the sameUUIDas 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:
getHandlersin classorg.bukkit.event.Event
-