mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-02-26 01:01:45 +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;
|
vanished = !vanished;
|
||||||
if (vanished)
|
if (vanished)
|
||||||
{
|
{
|
||||||
|
setHidden(true);
|
||||||
ess.getVanishedPlayers().add(getName());
|
ess.getVanishedPlayers().add(getName());
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
setHidden(false);
|
||||||
ess.getVanishedPlayers().remove(getName());
|
ess.getVanishedPlayers().remove(getName());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user