minecraft command block testfor certain player

I am trying to make a command block that when powered, it will looks for a specific player in a 5 block radius of the command block. I tried

/testfor @p[r=5][name=<name of player>]

but it doesn’t work.

  • Why does my character walk forward automatically?
  • How do I change my player name in Minecraft multiplayer in offline mode in Windows
  • Minecraft Test If A Chest Contains An Item
  • How do you stop yourself dying while drowning?
  • How do you test if a player is holding a Skull with a skull owner?
  • Are animals attracted to light?
  • We love Playing Games, especially Video Games.