mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-18 20:41:37 +02:00
/vanish command sets players invisible to essentials commands.
This commit is contained in:
@@ -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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user