player is a Player objectoldHp is a numbernewHp is a numberbot.on('playerDamage', (player, oldHp, newHp) => {
console.log(`${player.name} was hit! their health was ${oldHp}, now it's ${newHp}`);
});
player is a Player objectoldHp is a numbernewHp is a numberbot.on('playerDamage', (player, oldHp, newHp) => {
console.log(`${player.name} was hit! their health was ${oldHp}, now it's ${newHp}`);
});