#$execute if score #time game$(map_id) matches 2.. run title @s actionbar ["",{"text":"Coins: ","color":"gold"},{"score":{"name":"@s","objective":"coins"},"color":"gold"},{"text":" | ","color":"white"},{"text":"Time: ","color":"gray"},{"score":{"name":"#time","objective":"game$(map_id)"},"color":"gray"},{"text":"m","color":"gray"}]
#$execute if score #time game$(map_id) matches 1 run title @s actionbar ["",{"text":"Coins: ","color":"gold"},{"score":{"name":"@s","objective":"coins"},"color":"gold"},{"text":" | ","color":"white"},{"text":"Time: ","color":"gray"},{"score":{"name":"#seconds","objective":"game$(map_id)"},"color":"gray"},{"text":"s","color":"gray"}]

$execute if entity @s[team=blue] run function pctf:logic/game/actionbar/blue {map_id: "$(map_id)"}
$execute if entity @s[team=red] run function pctf:logic/game/actionbar/red {map_id: "$(map_id)"}