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

Hierarchy

  • RevertableEvent
    • PlayerRemoveProtectionEvent

Implements

Properties

eventName: "player.removeprotection"
eventName: "player.removeprotection"
murderAttempt: boolean

Whether or not the player ran out of protection because of a murder attempt.

player: PlayerData<RoomType>

The player that this event is for.

reverted: boolean
room: RoomType

The room or client that the event came from.

Constructors

  • Type Parameters

    Parameters

    • room: RoomType
    • player: PlayerData<RoomType>
    • murderAttempt: boolean

      Whether or not the player ran out of protection because of a murder attempt.

    Returns PlayerRemoveProtectionEvent<RoomType>

Methods

  • Returns void

Generated using TypeDoc