I would like to know how I would be able to kill a player near an armor stand, then kill the armor stand and use the explosion particle at the same time. I'm working on a single command for a claymore and I need it to explode.
I have tried doing this command a couple times but it only killed me when I was near the command block. The command I used is
/kill @p[r=2] [type=ArmorStand,Name=Clamore] and other versions of this with minor changes.