How can I check if a certain player is in Vanish in Minecraft?

Sp
1

How can I check if a certain player is in Vanish in Minecraft?

ro

I would put him in an ArrayList when Vanish go and then simply query whether the player is in the ArrayList

if (vanish.contains (p)) {}