Add `on_player_preconnect' callback.