Class PlayerSkinInitEvent

java.lang.Object
net.minestom.server.event.player.PlayerSkinInitEvent
All Implemented Interfaces:
Event, EntityEvent, PlayerEvent

public class PlayerSkinInitEvent extends Object implements PlayerEvent
Called at the player connection to initialize his skin.
  • Constructor Details

    • PlayerSkinInitEvent

      public PlayerSkinInitEvent(@NotNull @NotNull Player player, @Nullable @Nullable PlayerSkin currentSkin)
  • Method Details

    • getSkin

      @Nullable public @Nullable PlayerSkin getSkin()
      Gets the spawning skin of the player.
      Returns:
      the player skin, or null if not any
    • setSkin

      public void setSkin(@Nullable @Nullable PlayerSkin skin)
      Sets the spawning skin of the player.
      Parameters:
      skin - the new player skin
    • getPlayer

      @NotNull public @NotNull Player getPlayer()
      Description copied from interface: PlayerEvent
      Gets the player.
      Specified by:
      getPlayer in interface PlayerEvent
      Returns:
      the player