Death
Defined in: src/events/Death.ts:5
The event received when a player dies in-game.
Extends
Section titled “Extends”Properties
Section titled “Properties”event:
string
Defined in: src/events/BaseEvent.ts:5
Inherited from
Section titled “Inherited from”id:
number
Defined in: src/events/BaseEvent.ts:4
Inherited from
Section titled “Inherited from”ok:
boolean
Defined in: src/packets/Data.ts:2
Inherited from
Section titled “Inherited from”rawText
Section titled “rawText”rawText:
string
Defined in: src/events/Death.ts:10
The death message contents, with its original formatting codes.
renderedText
Section titled “renderedText”renderedText:
RenderedTextObject
Defined in: src/events/Death.ts:13
The death message contents, serialised with formatting as Minecraft JSON text.
source
Section titled “source”source:
null
|User
Defined in: src/events/Death.ts:19
The player that killed this player (if available), or null
.
text:
string
Defined in: src/events/Death.ts:7
The death message contents, without formatting codes.
time:
Date
Defined in: src/events/BaseEvent.ts:6
Inherited from
Section titled “Inherited from”type:
string
Defined in: src/packets/Data.ts:3
Inherited from
Section titled “Inherited from”user:
User
Defined in: src/events/Death.ts:16
The in-game player who died.