Hello! I was trying to make a command so when you drink a certain potion, you will teleport to a certain area. The problem is, though that it's set to @p, so if I have multiple people on my world, whoever's closest to the command block will be teleported. I have the command block find the player with the potion effect by having it take the potion effect away by using:
/effect @a minecraft:weakness 0
then I have it hooked up to a comparator that powers the command block to teleport. Can I have it specifically teleport the person who drank the potion? I think you can do it with scoreboard objectives but I'm not very good with that command yet. Thanks!