summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Essentials/src/com/earth2me/essentials/commands/Commandvanish.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandvanish.java b/Essentials/src/com/earth2me/essentials/commands/Commandvanish.java
index 3c5045346..865940b30 100644
--- a/Essentials/src/com/earth2me/essentials/commands/Commandvanish.java
+++ b/Essentials/src/com/earth2me/essentials/commands/Commandvanish.java
@@ -30,12 +30,12 @@ public class Commandvanish extends EssentialsCommand
}
if (args.length > 0)
{
- if (args[1].contains("on") && !user.isVanished())
+ if (args[0].contains("on") && !user.isVanished())
{
user.toggleVanished();
user.sendMessage(_("vanished"));
}
- if (args[1].contains("off") && user.isVanished())
+ if (args[0].contains("off") && user.isVanished())
{
user.toggleVanished();
user.sendMessage(_("unvanished"));