Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PlayerCheckNameEvent<RoomType>

Emitted when a player requests to have their name set. Only emitted if the client is the host.

Type parameters

  • RoomType: Hostable

Hierarchy

Implements

Index

Properties

Static eventName

eventName: "player.checkname" = ...

alteredName

alteredName: string

canceled

canceled: boolean

eventName

eventName: "player.checkname" = ...

Readonly message

message: undefined | CheckNameMessage

The message that this event originated from.

Readonly originalName

originalName: 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.

Methods

cancel

  • cancel(): void

setName

  • setName(name: string): void

Constructors

constructor

  • new PlayerCheckNameEvent<RoomType>(room: RoomType, player: PlayerData<RoomType>, message: undefined | CheckNameMessage, originalName: string, alteredName: string): PlayerCheckNameEvent<RoomType>

Generated using TypeDoc