Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PlayerMurderEvent<RoomType>

Emitted when a player murders another player.

Due to technical limitations, this event cannot be reverted without advanced "breaking game", therefore it is out of scope of a single .revert() function. However, see PlayerCheckMurderEvent to see about canceling a murder before it happens if you are the host.

Type parameters

  • RoomType: Hostable

Hierarchy

Implements

Index

Properties

Static eventName

eventName: "player.murder" = ...

eventName

eventName: "player.murder" = ...

Readonly message

message: undefined | MurderPlayerMessage

The message that this event originated from.

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.

Readonly victim

victim: PlayerData<RoomType>

Constructors

constructor

  • new PlayerMurderEvent<RoomType>(room: RoomType, player: PlayerData<RoomType>, message: undefined | MurderPlayerMessage, victim: PlayerData<RoomType>): PlayerMurderEvent<RoomType>

Generated using TypeDoc