GET ITEM ENCHANTMENT

Item#getEnchantments() to get all enchantments or Item#getEnchantment(enchantment id) which returns certain Enchantment or null if item doesn't have that enchantment. Idk why would you check the enchantments every time player moves but there is PlayerMoveEvent that you could use.
 
Item#getEnchantments() to get all enchantments or Item#getEnchantment(enchantment id) which returns certain Enchantment or null if item doesn't have that enchantment. Idk why would you check the enchantments every time player moves but there is PlayerMoveEvent that you could use.


I mean, if a player has the PROTECTION 4 enchant, he changes it to PROTECTION 3 after moving. Do you have any idea?
 
Back
Top