Hey, I'm trying to make a new enchanting system. Let me explain a bit. You can use the command /Merchant Enchanting to open the enchanting inventory. When you click an item it gets transferred to Slot 13 of the opened inventory. Then you can click some books to enchant the item. This is working perfectly, but when you use E or ESC to close the inventory without taking the Item of enchanting back it gets deleted with the inventory. How would I add the item back to the players inventory when the inventory is closed with E or ESC? There are two options that would work for me. One, Close the inventory and add the item or seccondly cancel the event when they try to close it with E or ESC. I have no clue how to do either. Can someone help?