I am trying to testfor if a player fulfills two different criteria. One criteria cannot be changed and is:
score_money=5000. I have tried to come up with another criteria to target a very specific player. For example I've tried:
/testfor @p[tag=buyHSR,score_money=5000] /testfor @p[l=30,score_money=5000] /testfor @p[score_buy=1,score_money=4500]
The problem, all of these commands work on singleplayer, and not on multiplayer. What happens on multiplayer is that it will testfor the
score_money=500 of the nearest player and execute the following commands despite whether or not that same player has the
score_buy=1 tag. So, if I am closest to the command blocks and have insufficient
money but my friend has enough, who is farther away, the selector will find my friend but execute the commands for me. (This causes my
money score to reach into the negatives). In summary, the target selector favors one criteria over the other depending on who has one of the criteria. I am trying to get a selector that will succeed only if both citeria are met.
I am running Minecraft 1.12.2.