ItemFrames Item place and Item break events

Discussion in 'Spigot Plugin Development' started by Hugmanrique, Jun 26, 2016.

  1. Hi,

    I can't find a way to check when a Player right clicks an ItemFrame with an item in hand and its placed. I have tried using PlayerInteractEntityEvent, but the only thing I can detect is item placing, but not item removal because this event is only fired when the entity is RIGHT clicked.

    I also have tried using HangingBreakEvent and HangingPlaceEvent, but that is only fired when the ItemFrame is created by right clicking an empty block face.
  2. Choco


    Try EntityDamageByEntityEvent for getting the item out, and PlayerInteractEntityEvent for putting it in
  3. Thank you, will try it!
    • Like Like x 1