KillLog

API reference for KillLog in @erlcjs/core.

Represents a log of a player death event (kill).

Signature:

declare class KillLog extends Base

Extends: Base

#Constructors

Constructor

Modifiers

Description

(constructor)(server, data)

Creates an instance of KillLog.

#Properties

Property

Modifiers

Type

Description

killed?

Player

(Optional) The Player instance representing the player who was killed, if they are still cached.

killedId

number

The UserId of the player who was killed.

killedUsername

string

The Roblox username of the player who was killed.

killer?

Player

(Optional) The Player instance representing the player who did the killing, if they are still cached.

killerId

number

The UserId of the player who did the killing.

killerUsername

string

The Roblox username of the player who did the killing.

timestamp

number

Unix timestamp of when the kill occurred.

#Methods

Method

Modifiers

Description

_patch(data)

Patches the KillLog structure with new raw data.

toJSON()

Converts this KillLog instance to raw JSON representation.