## Runs in the final state of `controller.animation.player.login` to ensure the player is fully loaded
## @s = a player

## RESETS PROPERTY TO RERUN NEXT LOGIN
scoreboard players reset @s LoggedIn
event entity @s set_is_logging_in_to_false
execute as @s[tag=dev] run say logged in
inputpermission set @s movement enabled
tag @s remove HideElevatorHint
scoreboard objectives add TutorialStage dummy
scoreboard players add @s TutorialStage 0
scoreboard objectives add EscapedIsland dummy
scoreboard players add .var EscapedIsland 0

execute if score .current TutorialStage matches 1..3 run tag @s add HideEndForceUI
execute if score .current TutorialStage matches 1..3 run title @s title nothing
execute if score .var EscapedIsland matches 0 run event entity @s set_escape_hub_check_to_true

function player/initialize_end_force_objectives
function player/tutorial_stage_check