Recognize when someone is standing in front of you?

Li
1

I have the question how you can know via command whether a person is standing in front of you in minecraft or not.

Fo

You can use the plugin to change the position and rotation of the player, don't think there's a command for it