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?
/effect 1 1000000 5 @a[barbarian]
But it didn't work. I am running 1.9