execute as @a[team=red] run title @s title {"text":"You win !","color":"gold","bold":true,"type":"text"}
execute as @a[team=blue] run title @s title {"text":"You lost !","color":"dark_red","bold":true,"type":"text"}
item replace entity @e[tag=winnercup] container.0 with minecraft:paper[minecraft:custom_model_data={floats:[2014.0f]}]
tag @a[team=red] add winner
#team modify red prefix {"text":" ","color":"white"}
team modify blue prefix ""
function cf:game/spawntrophy/redtrophy
schedule function cf:game/endgame/redfw 1s
