Class PlayerSetSkinEvent<RoomType>

Emitted when a player has their player skin updated.

Type Parameters

Hierarchy

  • BasicEvent
    • PlayerSetSkinEvent

Implements

Properties

eventName: "player.setskin"
eventName: "player.setskin"
message: undefined | SetSkinMessage

The message that this event originated from.

newSkinId: string

The new skin that the player has.

oldSkinId: string

The skin that the player had before.

player: PlayerData<RoomType>

The player that this event is for.

room: RoomType

The room or client that the event came from.

Accessors

  • get alteredSkin(): string
  • The altered skin that the player will have set instead, if changed.

    Returns string

Constructors

  • Type Parameters

    Parameters

    • room: RoomType
    • player: PlayerData<RoomType>
    • message: undefined | SetSkinMessage
    • oldSkinId: string

      The skin that the player had before.

    • newSkinId: string

      The new skin that the player has.

    Returns PlayerSetSkinEvent<RoomType>

Methods

  • Revert the player's skin back to their old skin.

    Returns void

  • Change the skin that the player had set.

    Parameters

    • skin: string

      The skin to set.

    Returns void

Generated using TypeDoc