So I'm making a kind of kit PVP game called classes, where you join a team, let's say, the barbarian. You can't hit any other barbarians, and it shows everyone else with the same class. But I want people with certain classes to have special effects how do I do that?
I tried:
/effect 1 1000000 5 @a[barbarian]
But it didn't work. I am running 1.9
http://minecraft.gamepedia.com/Commands#Target_selector_arguments
would have told you what you were doing wrong.