Solved Listener for Item Despawn Event (in 1.9, not 1.9.4)

Discussion in 'Spigot Plugin Development' started by MaybeLaterx, May 15, 2016.

  1. Hi! :)

    I'm looking for the EventListener I should be using to track when an item naturally despawns after being on the floor for five minutes. Is it an EntityDeathEvent? I found ItemDespawnEvent but it's only suitable for 1.9.4 and the server I am running is on 1.9.

    Any help would be appreciated!
     
    #1 MaybeLaterx, May 15, 2016
    Last edited: May 15, 2016
  2. Choco

    Moderator

    Erm... ItemDespawnEvent is available for both 1.9.0 - 1.9.4? It's actually been around for a long long time. Not sure why you think that it is not :p

    I don't think there were any new events added between 1.9.0 and 1.9.4 other than PlayerPickupArrowEvent and PlayerSwapHandItemsEvent
     
    • Agree Agree x 1
  3. I'm an idiot. -_- I was sure it couldn't find it when I tried to import. Well, thank you! :)
     
    • Like Like x 2