mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-17 20:11:21 +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;
|
||||
if (vanished)
|
||||
{
|
||||
setHidden(true);
|
||||
ess.getVanishedPlayers().add(getName());
|
||||
}
|
||||
else
|
||||
{
|
||||
setHidden(false);
|
||||
ess.getVanishedPlayers().remove(getName());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user