This commit is contained in:
Video 2021-07-29 05:45:21 -06:00
parent 6c8d1934e7
commit a79b2cbe0f

View File

@ -251,9 +251,7 @@ public class Command_enchant extends FreedomCommand
return getEnchantments(item);
}
}
else if (args.length == 3)
{
if (args[0].equals("add"))
else if (args.length == 3 && args[0].equalsIgnoreCase("add"))
{
Enchantment enchantment = Enchantment.getByName(args[1].toUpperCase());
if (enchantment != null)
@ -268,7 +266,6 @@ public class Command_enchant extends FreedomCommand
}
}
}
}
return Collections.emptyList();
}