Count Shift Click Crafting

Discussion in 'Plugin Development' started by silthus, Jun 22, 2012.

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

    silthus

    Hello there,

    how can I count how many Items a player crafted when he used Shift+Click? The normal ItemCraftEvent does not work for that.

    Thanks for any awnsers!

    Silthus
     
  2. Offline

    Digi

    There's another thread about this that has a temporary code solution until bukkit adds it, you should search.
     
  3. Offline

    silthus

  4. Offline

    Digi

    You could also get the ingredients from the recipe and see how many times the player CAN craft by comparing them to the crafting grid... however, that wouldn't be 100% accurate because the player might have full inventory and some might craft or even none at all... so alot of checking is required... or you can just use that method.

    So you say you changed it to an ASync task ? Yes that might be the problem... run the code as-is first.
     
Thread Status:
Not open for further replies.

Share This Page