Crafting event

Discussion in 'Plugin Development' started by Megolas, Jul 19, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    Megolas

    Hey,
    Is there a way to change the outcome of a crafting event after the player completed it?
    So if he tries to make a diamond sword, once he clicks on it it disappears (I've seen they removed setCursor a while ago) and he DOESN'T get the diamonds and sticks back?

    Thanks
     
  2. Offline

    krazytraynz

    Check if the inventory in InventoryClickEvent is a CraftingInventory, and use
    Code:
     setCurrentItem(new ItemStack(Material.AIR)); 
     
Thread Status:
Not open for further replies.

Share This Page