Class PreFillProfileEvent

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

@NullMarked public class PreFillProfileEvent extends Event
Fired when the server is requesting to fill in properties of an incomplete profile, such as textures.

Allows plugins to pre-populate cached properties and avoid a call to the Mojang API

  • Constructor Details

  • Method Details

    • getPlayerProfile

      public PlayerProfile getPlayerProfile()
      Returns:
      The profile that needs its properties filled
    • setProperties

      public void setProperties(Collection<ProfileProperty> properties)
      Sets the properties on the profile, avoiding the call to the Mojang API Same as .getPlayerProfile().setProperties(properties);
      Parameters:
      properties - The properties to set/append
      See Also:
    • getHandlers

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

      public static HandlerList getHandlerList()