how to check when player join the world in singleplayer?

how to trigger function when player join singleplayer world

Continue to help post