mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2024-08-20 18:32:49 +00:00
/vanish command sets players invisible to essentials commands.
This commit is contained in:
parent
8b47b80b0b
commit
43b3a9df23
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue