I suggest to add a check, which check if player instant rotate from 134.495 pitch to 75 pitch and same with yaw and starting place blocks, this check is flag this player. For sample: player cannot to do perfect rots (hack clients can do it), u can add any factor, that the check is not flagging legit players, factors same with code below.
// this is our check
if (lastPitch % 1 != 0 && pitch % 1 == 0) {
// this is our factor
if (yawDelta > 10 && pitchDelta > 2) {
}
}
I have a similar PerfectRotation check. Still, you should be careful to say that a player cannot do such things. Especially with fast client movements, such packets can be sent by vanilla players.
Details
I suggest to add a check, which check if player instant rotate from 134.495 pitch to 75 pitch and same with yaw and starting place blocks, this check is flag this player. For sample: player cannot to do perfect rots (hack clients can do it), u can add any factor, that the check is not flagging legit players, factors same with code below.