tag @s add trap_temp

execute as @a[distance=..250] unless score @s ctf_ID = @n[tag=trap_temp] ctf_ID run function pctf:logic/items/lucky_block/effects/trapped/start {duration: "160"}

tellraw @s {"text":"All enemy players have been ensared momentarily!","color":"aqua"}

tag @s remove trap_temp