killed is a Player objectkiller is a Player objectoldKilled is a Player object representing the killed player before deathdamageInt is an integer representing the cause of death in an integerbot.on('playerDeath', (killed, killer, oldKilled, damageInt) => {
console.log(`${killed.name} was killed by ${killer.name}, with the damage HP being ${oldKilled.hp - killed.hp} (cause int: ${damageInt})`);
});
damageInt values:
killed is a Player objectkiller is a Player objectoldKilled is a Player object representing the killed player before deathdamageInt is an integer representing the cause of death in an integerbot.on('playerDeath', (killed, killer, oldKilled, damageInt) => {
console.log(`${killed.name} was killed by ${killer.name}, with the damage HP being ${oldKilled.hp - killed.hp} (cause int: ${damageInt})`);
});
damageInt values: