skeldjs
    Preparing search index...

    Class PlayerDieEvent<RoomType>

    Emitted when a player dies, either by being murdered or being exiled. Unlike PlayerMurderEvent, this event can be reverted to bring the player back to life, but note that their body will not be removed due to technical limitations.

    Type Parameters

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Properties

    eventName: "player.die" = ...
    player: Player<RoomType>

    The player that this event is for.

    reason: string

    Whether or not the player died by being exiled. SkeldJS only uses 'murder' or 'exile', although this can be anything.

    reverted: boolean
    room: RoomType

    The room or client that the event came from.

    eventName: "player.die" = ...

    Methods