PlayerLootReceived

Methods
4
Fields
1

Methods

MethodReturnsDescription
getItems(){ItemStack}The stacks, in spawn order.
getPlayerName()stringThe dead player's name, as the last tick before it despawned had it ("" when none did). A handle made after the despawn would not know the…
getPlayerCombatLevel()numberThe dead player's combat level, as the last tick before it despawned had it (0 when none did): getPlayer().getCombatLevel().
getPlayerIndex()numberThe dead player's index (Player:getId()).

Fields

FieldTypeDescription
__eventClassstring"PlayerLootReceived": the class's name, which host APIs that take the class itself read.

Method details

getPlayerName

getPlayerName: (PlayerLootReceived) -> string

The dead player's name, as the last tick before it despawned had it ("" when none did). A handle made after the despawn would not know the name.

getPlayerCombatLevel

getPlayerCombatLevel: (PlayerLootReceived) -> number

The dead player's combat level, as the last tick before it despawned had it (0 when none did): getPlayer().getCombatLevel().