Cleanup worth and sell messages

This commit is contained in:
KHobbits 2013-07-19 00:55:21 +01:00
parent 4eef8b5e84
commit 59515aed94
3 changed files with 17 additions and 4 deletions

View file

@ -181,7 +181,12 @@ public class ItemDb implements IConf, net.ess3.api.IItemDb
{
is.add(get(args[0]));
}
if (is.isEmpty() || is.get(0).getType() == Material.AIR)
{
throw new Exception(_("itemSellAir"));
}
return is;
}