1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-09-02 19:22:37 +02:00
This commit is contained in:
Iaccidentally
2012-10-09 04:56:44 -04:00
parent 8412b6682f
commit 4aba49ce30

View File

@@ -16,6 +16,13 @@ public class Commanditem extends EssentialsCommand
if (args.length < 1)
{
throw new NotEnoughArgumentsException();
}
if (args.length > 1 && "love".equals(args[0]) && "you".equals(args[1]))
{
user.sendMessage("What is love?");
user.sendMessage("Baby don't hurt me");
return;
}
final ItemStack stack = ess.getItemDb().get(args[0], user);
@@ -52,7 +59,7 @@ public class Commanditem extends EssentialsCommand
stack.addEnchantment(enchantment, level);
}
}
if (stack.getTypeId() == 0)
{
throw new Exception(_("cantSpawnItem", "Air"));