Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PlayerSetRoleEvent<RoomType>

Emitted when a player has their player role updated.

Type parameters

  • RoomType: Hostable

Hierarchy

Implements

Index

Properties

Static eventName

eventName: "player.setrole" = ...

eventName

eventName: "player.setrole" = ...

Readonly message

message: undefined | SetRoleMessage

The message that this event originated from.

Readonly newRole

newRole: typeof BaseRole

Readonly oldRole

oldRole: typeof BaseRole

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

alteredRole

Constructors

constructor

Methods

revert

  • revert(): void

setRole

  • setRole(roleCtr: typeof BaseRole): void

Generated using TypeDoc