mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-11-04 18:09:54 +01: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 New Issue
Block a user