player is a Player objectoldView is an object containing the previous view of the player, with yaw and `pitch properties.newView is an object containing the new view of the player, with yaw and `pitch properties.bot.on('playerRotate', (player, oldView, newView) => {
console.log(`${player.name} rotated from yaw: ${oldView.yaw} / pitch: ${oldView.pitch}`);
console.log(`${player.name} rotated to yaw: ${newView.yaw} / pitch: ${newView.pitch}`);
});
player is a Player objectoldView is an object containing the previous view of the player, with yaw and `pitch properties.newView is an object containing the new view of the player, with yaw and `pitch properties.bot.on('playerRotate', (player, oldView, newView) => {
console.log(`${player.name} rotated from yaw: ${oldView.yaw} / pitch: ${oldView.pitch}`);
console.log(`${player.name} rotated to yaw: ${newView.yaw} / pitch: ${newView.pitch}`);
});