Support for experience as trading goods on signs. This will not work until experience is fixed in Bukkit.

This commit is contained in:
snowleo 2011-12-07 10:31:18 +01:00
parent 67a3a55f5a
commit fdd8fffbb3
4 changed files with 114 additions and 25 deletions

View file

@ -399,6 +399,11 @@ public class EssentialsSign
sign.setLine(index, (quantity - decrement) + " times");
return new Trade(signName.toLowerCase(Locale.ENGLISH) + "sign", ess);
}
else if (item.equalsIgnoreCase("exp") || item.equalsIgnoreCase("xp"))
{
sign.setLine(index, quantity + " exp");
return new Trade(quantity, ess);
}
else
{
final ItemStack stack = getItemStack(item, quantity, ess);