## executing as the player that was killed
# attacker or bow_attacker is the killer

execute if entity @a[tag=attacker] run return run function pctf:logic/player/death_messages/killed
execute if entity @a[tag=bow_attacker] run return run function pctf:logic/player/death_messages/killed_bow/start
function pctf:logic/player/death_messages/died