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:
  • Constructor Details

    • AsyncProfileLoadEvent

      public AsyncProfileLoadEvent(@Nonnull PlayerProfile profile)
  • Method Details

    • getPlayerUUID

      @Nonnull public UUID getPlayerUUID()
    • getProfile

      @Nonnull public PlayerProfile getProfile()
    • setProfile

      public void setProfile(@Nonnull PlayerProfile profile)
      This method can be used to inject your custom PlayerProfile implementations. However, the passed PlayerProfile must have the same UUID as the original one!
      Parameters:
      profile - The PlayerProfile
    • getHandlerList

      @Nonnull public static org.bukkit.event.HandlerList getHandlerList()
    • getHandlers

      @Nonnull public org.bukkit.event.HandlerList getHandlers()
      Specified by:
      getHandlers in class org.bukkit.event.Event