Minecraft – How to use the /testfor command on a specific player

minecraft-commandsminecraft-java-edition

So I have this map that me and my brother Zeal Etage (Minecraft name) play together using LAN. I created a command block system using the /testfor command for a money system that rewards on mob-killing. I have a command like this:

/testfor [name=ZealEtage,score_skeleton_min=1]

but it says the UUID doesn't match. What am I doing wrong?

Best Answer

You need a selector (@r, @a, @p, @e) before the selector arguments. Try this:

/testfor @a[name=ZealEtage,score_skeleton_min=1]