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

tellraw @a[distance=..250] ["",{"selector":"@s","color":"white"},{"text":"'s","color":"white"},{"text":" team cannot place any blocks for a limited time!","color":"aqua"}]
particle minecraft:sneeze ~ ~ ~ 0 0 0 0.35 2000