Added listeners to save movement distance in case the client or server crashes while a player/players are walking