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" = ...
    eventName: "player.die" = ...
    player: Player<RoomType>
    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

    Methods