/vanish command sets players invisible to essentials commands.

This commit is contained in:
KHobbits 2012-06-10 23:36:10 +01:00
parent 8b47b80b0b
commit 43b3a9df23

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());
}
}