args[0] instead of args[1]

derp
This commit is contained in:
kukelekuuk00 2012-06-15 11:41:06 +02:00
parent 0d56b700bf
commit d1a1559dca

View File

@ -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"));