tag @a remove game_started
execute as @a[tag=game_over] run function main:game/condition/score
gamemode adventure @a
#reset
scoreboard objectives remove arena
execute as @a run function main:settings/scoreboards/load
execute as @a run function main:settings/scoreboards/set
execute as @a run function main:settings/gamerule
execute as @a run function main:menu/classless
function player_motion:internal/technical/load
kill @e[type=#main:enemies,tag=enemy]
kill @e[type=item_display]
kill @e[type=block_display]
kill @e[type=text_display]
gamemode adventure @a
data remove storage player_data 1
data remove storage player_data 2
data remove storage player_data 3
data remove storage player_data 4
kill @e[type=#main:not_enemies,tag=lobby]
effect clear @a
tag @a remove main_menu
tag @a remove information
tag @a remove choice