summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKHobbits <rob@khobbits.co.uk>2012-06-10 23:36:10 +0100
committerKHobbits <rob@khobbits.co.uk>2012-06-10 23:36:10 +0100
commitf3213494db2987c6b77c042b95fa784b30ec8ca9 (patch)
treeebac8f8e1281a71b323297155a1ffd501e56848d
parent011a89071ec20625b3b0ffef5972f76bf9da2228 (diff)
downloadEssentials-f3213494db2987c6b77c042b95fa784b30ec8ca9.tar
Essentials-f3213494db2987c6b77c042b95fa784b30ec8ca9.tar.gz
Essentials-f3213494db2987c6b77c042b95fa784b30ec8ca9.tar.lz
Essentials-f3213494db2987c6b77c042b95fa784b30ec8ca9.tar.xz
Essentials-f3213494db2987c6b77c042b95fa784b30ec8ca9.zip
/vanish command sets players invisible to essentials commands.
-rw-r--r--Essentials/src/com/earth2me/essentials/User.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/Essentials/src/com/earth2me/essentials/User.java b/Essentials/src/com/earth2me/essentials/User.java
index 22b772f78..b752458ba 100644
--- a/Essentials/src/com/earth2me/essentials/User.java
+++ b/Essentials/src/com/earth2me/essentials/User.java
@@ -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());
}
}