1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-22 14:23:09 +02:00

args[0] instead of args[1]

derp
This commit is contained in:
kukelekuuk00
2012-06-15 11:41:06 +02:00
parent 55d6ef7719
commit 1ed1c57371

View File

@@ -30,12 +30,12 @@ public class Commandvanish extends EssentialsCommand
} }
if (args.length > 0) if (args.length > 0)
{ {
if (args[1].contains("on") && !user.isVanished()) if (args[0].contains("on") && !user.isVanished())
{ {
user.toggleVanished(); user.toggleVanished();
user.sendMessage(_("vanished")); user.sendMessage(_("vanished"));
} }
if (args[1].contains("off") && user.isVanished()) if (args[0].contains("off") && user.isVanished())
{ {
user.toggleVanished(); user.toggleVanished();
user.sendMessage(_("unvanished")); user.sendMessage(_("unvanished"));