Dropping an item

Discussion in 'Plugin Development' started by TheGag96, Mar 17, 2011.

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

    TheGag96

    Yes, a really n00by question. :p I don't know how to drop an item. I'm using a Craftbukkit build from before TSLPC was removed (467). When I do this from an event:

    Code:
    block.getWorld().dropItemNaturally(block.getLocation(), item);
    (block and item are variables from my code. block is from an event, and item is a variable i created just for use twice (it's stone).

    Every time that code runs (during the event that causes it, I mean), it just gives a NoSuchMethod exception.

    Is it my Craftbukkit version or what?
     
  2. Offline

    Edward Hand

    Yes. That method must have been added more recently.
     
Thread Status:
Not open for further replies.

Share This Page