Added:
- Custom Event:
PlayerEnchantItemEvent
Code (Java):
Player getPlayer
(
)
;
// The enchantment player has just enchanted
Enchantment getEnchantment
(
)
;
// The level of the enchantment player has just enchanted
int getLevel
(
)
;
// The cost player pay for the enchant
Cost getCost
(
)
;
- option to award player Enchant Item advancement (only for above 1.12)
Code (YAML):
# Award enchanting advancement to player after they enchant their tools
AwardAdvancement
: false