Added:
- Able to set enchantment limit for specific material (located in config.yml)
- Able to set enchantment level limit for specific material (located in enchantment's file)
Example of enchantment limit
Code (YAML):
enchantment-limit
:
# The default amount of enchantment can be enchanted in an item is 3
default-limit
: 3
# Override the default limit, now diamond sword can have up to 5 enchantments
override
:
- DIAMOND_SWORD.5
Example of enchantment level limit
In
DAMAGE_ALL.yml:
Code (YAML):
level-limit
:
- STONE_SWORD.2
- IRON_SWORD.3
Stone sword can enchant until Level 2 of sharpness, Iron Sword can enchant until Level 3 of sharpness.
Other items that are not listed in there can enchant to the highest level
Bug Fix:
- Issue with enchantment level exceeding the configured highest level