Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PlayerRemoveProtectionEvent<RoomType>

Emitted when a player's protection by a guardian angel ends, either by running out of time or attempted to be murdered by an impostor.

See PlayerProtectEvent to listen for when a player gets protected initially.

Type parameters

  • RoomType: Hostable

Hierarchy

Implements

Index

Properties

Static eventName

eventName: "player.removeprotection" = ...

eventName

eventName: "player.removeprotection" = ...

Readonly murderAttempt

murderAttempt: boolean

Readonly player

player: PlayerData<RoomType>

The player that this event is for.

reverted

reverted: boolean

Readonly room

room: RoomType

The room or client that the event came from.

Constructors

constructor

  • new PlayerRemoveProtectionEvent<RoomType>(room: RoomType, player: PlayerData<RoomType>, murderAttempt: boolean): PlayerRemoveProtectionEvent<RoomType>

Methods

revert

  • revert(): void

Generated using TypeDoc