logo bannerlogo banner
Page Navigator
  • player is a Player object
  • oldView 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}`);
});