tellraw @a[tag=limitbreak_dead_player] {"text": "You have been revived!", "color": "green"}

execute as @a[tag=limitbreak_dead_player] run execute if score @s limitbreak_chosen_class matches 1 run function kiwi2:upgrades/classes/slayer/slayer_class_give_modifiers_only
execute as @a[tag=limitbreak_dead_player] run execute if score @s limitbreak_chosen_class matches 2 run function kiwi2:upgrades/classes/knight/knight_class_give_modifiers_only
execute as @a[tag=limitbreak_dead_player] run execute if score @s limitbreak_chosen_class matches 3 run function kiwi2:upgrades/classes/hunter/hunter_class_give_modifiers_only
execute as @a[tag=limitbreak_dead_player] run execute if score @s limitbreak_chosen_class matches 4 run function kiwi2:upgrades/classes/apothecary/apothecary_class_give_modifiers_only
execute as @a[tag=limitbreak_dead_player] run execute if score @s limitbreak_chosen_class matches 5 run function kiwi2:upgrades/classes/magus/magus_class_give_modifiers_only
execute as @a[tag=limitbreak_dead_player] run execute if score @s limitbreak_chosen_class matches 6 run function kiwi2:upgrades/classes/reaper/reaper_class_give_modifiers_only
execute as @a[tag=limitbreak_dead_player] run execute if score @s limitbreak_chosen_class matches 7 run function kiwi2:upgrades/classes/monk/monk_class_give_modifiers_only
execute as @a[tag=limitbreak_dead_player] run execute if score @s limitbreak_chosen_class matches 8 run function kiwi2:upgrades/classes/necromancer/necromancer_class_give_modifiers_only
tag @a[tag=limitbreak_dead_player] add limitbreak_revive
tag @a[tag=limitbreak_revive] remove limitbreak_dead_player
gamemode survival @a[tag=limitbreak_revive]
execute as @a[tag=limitbreak_revive] run function kiwi2:points/point_milestones_regive_after_death
tag @a[tag=limitbreak_dead_player] remove limitbreak_revive