skeldjs
    Preparing search index...

    Class PlayerCheckMurderEvent<RoomType>

    Emitted when a player is attempting to murder another player, and is requesting the host to verify the attempt and actually murder the player. Only admitted if the client is the host.

    This event is useful if you want to prevent a murder from actually happening, before it happens. Therefore this event doesn't guarantee that the victim is actually dead, see PlayerMurderEvent to listen for that.

    Type Parameters

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Properties

    eventName: "player.checkmurder" = ...
    isValid: boolean

    Whether or not this murder would normally be considered valid and thus the player be murdered.

    message: undefined | CheckMurderMessage

    The message that this event originated from.

    player: Player<RoomType>

    The player that this event is for.

    room: RoomType

    The room or client that the event came from.

    victim: Player<RoomType>

    The other player that the player is attempting to murder.

    eventName: "player.checkmurder" = ...

    Accessors

    Methods

    • Change whether this murder should be consider valid. If valid, ths player will indeed be murdered.

      Parameters

      • isValid: boolean

        Whether or not this murder should be considered valid.

      Returns void