Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PlayerSetNameEvent<RoomType>

Emitted when a player has their player name updated.

Type parameters

  • RoomType: Hostable

Hierarchy

Implements

Index

Properties

Static eventName

eventName: "player.setname" = ...

eventName

eventName: "player.setname" = ...

Readonly message

message: undefined | SetNameMessage

The message that this event originated from.

Readonly newName

newName: string

Readonly oldName

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

alteredName

  • get alteredName(): string

Constructors

constructor

  • new PlayerSetNameEvent<RoomType>(room: RoomType, player: PlayerData<RoomType>, message: undefined | SetNameMessage, oldName: string, newName: string): PlayerSetNameEvent<RoomType>

Methods

revert

  • revert(): void

setName

  • setName(name: string): void

Generated using TypeDoc