## Loops in the first two states of `controller.animation.player.login` until the player selector is found
## @s = a player

scoreboard objectives add LoggedIn dummy
scoreboard players add @s LoggedIn 1
execute as @s[scores={LoggedIn=5..}] run event entity @s set_is_logging_in_to_true

##say logging in