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 emitted 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" = ...
    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>
    room: RoomType
    victim: Player<RoomType>

    The other player that the player is attempting to murder.

    Accessors

    Methods

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

      Parameters

      • isValid: boolean

        Whether or not this murder should be considered valid.

      Returns void