This question already has an answer here:
My problem is what the title specifies. I'm creating an adventure map with an xp store. I have a series of command blocks which check for the proper xp level, take away the cost of the item and give the player that item. however when I go to check my xp level with /testfor, the command block doesn't output anything. instead it tells me
[19:54:57] /testfor < player>
The command I put in was
/testfor @p [lm=5]
I tried moving
[lm=5] so it was right beside the
@p, but Minecraft told me it can't find the player. I also tried putting my playername in, but I got the same output from before. Is there something I'm missing here?