mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-06 20:43:11 +00:00
Support for experience as trading goods on signs. This will not work until experience is fixed in Bukkit.
This commit is contained in:
parent
67a3a55f5a
commit
fdd8fffbb3
4 changed files with 114 additions and 25 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue