mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-17 12:01:20 +02:00
Fully support numerical worth yml data.
This commit is contained in:
@@ -36,6 +36,18 @@ public class Worth implements IConf
|
|||||||
result = config.getBigDecimal("worth." + itemname, BigDecimal.ONE.negate());
|
result = config.getBigDecimal("worth." + itemname, BigDecimal.ONE.negate());
|
||||||
}
|
}
|
||||||
if (result.signum() < 0)
|
if (result.signum() < 0)
|
||||||
|
{
|
||||||
|
result = config.getBigDecimal("worth." + itemStack.getTypeId() + "." + itemStack.getDurability(), BigDecimal.ONE.negate());
|
||||||
|
}
|
||||||
|
if (result.signum() < 0)
|
||||||
|
{
|
||||||
|
result = config.getBigDecimal("worth." + itemStack.getTypeId() + ".0", BigDecimal.ONE.negate());
|
||||||
|
}
|
||||||
|
if (result.signum() < 0)
|
||||||
|
{
|
||||||
|
result = config.getBigDecimal("worth." + itemStack.getTypeId(), BigDecimal.ONE.negate());
|
||||||
|
}
|
||||||
|
if (result.signum() < 0)
|
||||||
{
|
{
|
||||||
result = config.getBigDecimal("worth-" + itemStack.getTypeId(), BigDecimal.ONE.negate());
|
result = config.getBigDecimal("worth-" + itemStack.getTypeId(), BigDecimal.ONE.negate());
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user