[Fix] Potion erroring and duration/power fix

This commit is contained in:
GunfighterJ 2013-03-17 11:35:40 -05:00
parent 5ea1bdec56
commit 2f96ef1e97
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)
{