From 3975ceb2a02dddd5bba43cd4d7148bfd4d7125ab Mon Sep 17 00:00:00 2001 From: ementalo Date: Mon, 18 Jun 2012 15:35:21 +0100 Subject: [PATCH] Fixing vanish on off arguments --- .../src/com/earth2me/essentials/commands/Commandvanish.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandvanish.java b/Essentials/src/com/earth2me/essentials/commands/Commandvanish.java index dca489fea..ea051e4be 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandvanish.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandvanish.java @@ -3,7 +3,6 @@ package com.earth2me.essentials.commands; import static com.earth2me.essentials.I18n._; import com.earth2me.essentials.User; import org.bukkit.Server; -import org.bukkit.entity.Player; public class Commandvanish extends EssentialsCommand @@ -30,7 +29,7 @@ public class Commandvanish extends EssentialsCommand } else { - if (args[1].contains("on") || args[1].contains("ena") || args[1].equalsIgnoreCase("1")) + if (args[0].contains("on") || args[0].contains("ena") || args[0].equalsIgnoreCase("1")) { user.setVanished(true); }