1.14.4 EnchantItemEvent (Get Lapis Slot?)

Discussion in 'Spigot Plugin Development' started by Pr0Pancakeslol, Feb 2, 2020.

  1. Hey guys,

    I am writing a few cool simple enchants for a small plugin of mine. I am spicing up the enchant system just a bit and I was wondering if there's someway to get the slot that lapis is supposed to be set in?

    I checked the docs but I just don't see anything about it in the EncahntItemEvent nor the EnchantInventory
  2. If you need the slot, consider doing Bukkit.broadcastMessage(Integer.toString(event.getClickedSlot()) via the InventoryClickEvent to figure out what the slot is