What's the event when player moves and how can I get the player location, I tried it but i don't know if it's correct
@SubscribeEvent
public static void move(LivingEvent.LivingTickEvent event) {
if (event.getEntity() instanceof Player player) {
if (!player.onGround()) return;
/* get player location here */
}
}