Class PlayerSetNameplateEvent<RoomType>

Emitted when a player has their player nameplate updated.

Type Parameters

Hierarchy

  • BasicEvent
    • PlayerSetNameplateEvent

Implements

Properties

eventName: "player.setnameplate"
eventName: "player.setnameplate"
message: undefined | SetNameplateMessage

The message that this event originated from.

newNameplateId: string

The new nameplate that the player has.

oldNameplateId: string

The nameplate 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 alteredNameplateId(): string
  • The altered nameplate that the player will have set instead, if changed.

    Returns string

Constructors

  • Type Parameters

    Parameters

    • room: RoomType
    • player: PlayerData<RoomType>
    • message: undefined | SetNameplateMessage
    • oldNameplateId: string

      The nameplate that the player had before.

    • newNameplateId: string

      The new nameplate that the player has.

    Returns PlayerSetNameplateEvent<RoomType>

Methods

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

    Returns void

  • Change the nameplate that the player had set.

    Parameters

    • nameplate: string

      The nameplate to set.

    Returns void

Generated using TypeDoc