tag @s add trap_temp
execute as @a[distance=..250,gamemode=!spectator] if score @s ctf_ID = @n[tag=trap_temp] ctf_ID at @s run function pctf:logic/items/lucky_block/effects/trapped/start {duration: "160"}
tag @s remove trap_temp

tellraw @a[distance=..250] ["",{"selector":"@s","color":"white"},{"text":" ensnared their entire team!","color":"aqua"},{"text":" What a brilliant idea!","color":"yellow"}]