Hello there, I'm trying to make an AFK system, I need check if the player is not moving for like 5 minutes. Have a method to me check if the player is moving or not? Like on Spigot: "PlayerMoveEvent"
And how can I get the player Location? I'm using that:
double x = player.posX;
double y = player.posY;
double z = player.posZ;
But sometimes it get Wrong location.
Thank you.