Created a hook for when a player is about to be saved.