mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-22 22:34:43 +02:00
args[0] instead of args[1]
derp
This commit is contained in:
@@ -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"));
|
||||||
|
Reference in New Issue
Block a user