Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PlayerSetNameplateEvent<RoomType>

Emitted when a player has their player nameplate updated.

Type parameters

  • RoomType: Hostable

Hierarchy

Implements

Index

Properties

Static eventName

eventName: "player.setnameplate" = ...

eventName

eventName: "player.setnameplate" = ...

Readonly message

message: undefined | SetNameplateMessage

The message that this event originated from.

Readonly newNameplateId

newNameplateId: string

Readonly oldNameplateId

oldNameplateId: 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

alteredNameplateId

  • get alteredNameplateId(): string

Constructors

constructor

  • new PlayerSetNameplateEvent<RoomType>(room: RoomType, player: PlayerData<RoomType>, message: undefined | SetNameplateMessage, oldNameplateId: string, newNameplateId: string): PlayerSetNameplateEvent<RoomType>

Methods

revert

  • revert(): void

setNameplate

  • setNameplate(nameplate: string): void

Generated using TypeDoc