Potion erroring and duration/power fix

This commit is contained in:
GunfighterJ 2013-03-17 11:35:40 -05:00 committed by KHobbits
parent 5e4659e6ae
commit ce51a07bf1
15 changed files with 31 additions and 14 deletions

View file

@ -42,6 +42,11 @@ public class Commandpotion extends EssentialsCommand
}
throw new NotEnoughArgumentsException(_("potions", Util.joinList(potionslist.toArray())));
}
if (args.length < 3)
{
throw new NotEnoughArgumentsException();
}
if (stack.getType() == Material.POTION)
{