If your command is longer than 100 characters, it needs to be executed with a command block. Obtain one by typing:
/give @p command_block
If you are a mapmaker you might not want players to take items out of the armor stand. If you want to lock all slots, replace n with 1 (or 0 if you want to unlock it).
If you want to
disable specific slots, you have to add the numbers in following table up, and replace n with your result.
Boots | 2 |
Leggings | 4 |
Chestplate | 8 |
Helmet/Block | 16 |
Sword/Block | Not working :( |
/entitydata @e[r=2,ArmorStand] {DisabledSlots:n}