mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-11-04 18:09:54 +01:00
args[0] instead of args[1]
derp
This commit is contained in:
parent
0d56b700bf
commit
d1a1559dca
@ -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"));
|
||||
|
Loading…
Reference in New Issue
Block a user