Event called when item is destroyed?

Discussion in 'Plugin Development' started by amitlin14, Aug 9, 2013.

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

    amitlin14

    As the title suggests, what event is called when an item either despawns or removed by a command such as /clear from the player's inventory, or generally destroyed?
     
  2. Offline

    evilguy4000

    amitlin14 I dont think here is a specific action for but you should look between the Inventory events
     
  3. Offline

    mollekake

    there is an item despawn event for when items on the ground despawns
     
  4. Offline

    amitlin14

    mollekake but what about an event for a command , such as /clear?
     
  5. Offline

    mollekake

    then you have to alter the command to do what you want. If the command is in another plugin, i have no idea what you can do
     
  6. Offline

    lycano

    The other plugin should call a custom event which you could listen on. Otherwise you can put that on your "incompatbile" list =)
     
Thread Status:
Not open for further replies.

Share This Page