Interface SkinApplyEvent

All Superinterfaces:
org.geysermc.event.Cancellable

public interface SkinApplyEvent extends org.geysermc.event.Cancellable
An event that's fired when Floodgate receives a player skin. The event will be cancelled by default when hasSkin is true, as Floodgate by default only applies skins when the player has no skin applied yet.
  • Method Details

    • player

      @NonNull FloodgatePlayer player()
      Returns the player that will receive the skin.
    • currentSkin

      @Nullable SkinApplyEvent.SkinData currentSkin()
      Returns the skin texture currently applied to the player.
    • newSkin

      @NonNull SkinApplyEvent.SkinData newSkin()
      Returns the skin texture to be applied to the player.
    • newSkin

      SkinApplyEvent newSkin(@NonNull SkinApplyEvent.SkinData skinData)
      Sets the skin texture to be applied to the player
      Parameters:
      skinData - the skin to apply
      Returns:
      this