player is a Player objectoldPosition is an object containing the previous position of the player, with x, y, and z properties.newPosition is an object containing the new position of the player, with x, y, and z properties.bot.on('playerMove', (player, oldPosition, newPosition) => {
console.log(`${player.name} moved from X: ${oldPosition.x}, Y: ${oldPosition.y}, Z: ${oldPosition.z}`);
console.log(`${player.name} moved to X: ${newPosition.x}, Y: ${newPosition.y}, Z: ${newPosition.z}`);
});
player is a Player objectoldPosition is an object containing the previous position of the player, with x, y, and z properties.newPosition is an object containing the new position of the player, with x, y, and z properties.bot.on('playerMove', (player, oldPosition, newPosition) => {
console.log(`${player.name} moved from X: ${oldPosition.x}, Y: ${oldPosition.y}, Z: ${oldPosition.z}`);
console.log(`${player.name} moved to X: ${newPosition.x}, Y: ${newPosition.y}, Z: ${newPosition.z}`);
});