1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-17 20:11:21 +02:00

/vanish command sets players invisible to essentials commands.

This commit is contained in:
KHobbits
2012-06-10 23:36:10 +01:00
parent 2396f789c7
commit c4473e0307

View File

@@ -642,10 +642,12 @@ public class User extends UserData implements Comparable<User>, IReplyTo, IUser
vanished = !vanished;
if (vanished)
{
setHidden(true);
ess.getVanishedPlayers().add(getName());
}
else
{
setHidden(false);
ess.getVanishedPlayers().remove(getName());
}
}