Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PlayerSetSkinEvent<RoomType>

Emitted when a player has their player skin updated.

Type parameters

  • RoomType: Hostable

Hierarchy

Implements

Index

Properties

Static eventName

eventName: "player.setskin" = ...

eventName

eventName: "player.setskin" = ...

Readonly message

message: undefined | SetSkinMessage

The message that this event originated from.

Readonly newSkinId

newSkinId: string

Readonly oldSkinId

oldSkinId: string

Readonly player

player: PlayerData<RoomType>

The player that this event is for.

Readonly room

room: RoomType

The room or client that the event came from.

Accessors

alteredSkin

  • get alteredSkin(): string

Constructors

constructor

  • new PlayerSetSkinEvent<RoomType>(room: RoomType, player: PlayerData<RoomType>, message: undefined | SetSkinMessage, oldSkinId: string, newSkinId: string): PlayerSetSkinEvent<RoomType>

Methods

revert

  • revert(): void

setSkin

  • setSkin(skin: string): void

Generated using TypeDoc