Item's been replaced

Discussion in 'Spigot Plugin Development' started by Grinderwolf, Jul 10, 2015.

  1. Hello everyone,

    I'm looking for an event to check if a specific item of an inventory has been replaced with other and, in case, broadcast a message. Is there any way to do that?

    Thanks in advance,

  2. @concuncan What do you mean with "replaced"?

    Edit: I understood now! :D
  3. InventoryClickEvent and checking. :)
    Do you need code?
    • Agree Agree x 1
  4. If you need help finding an event or method and you want to know what it does, you should really look at the documentation for spigot before asking the forums the question.
    • Agree Agree x 1
  5. I've already tried and I couldn't, could u send me an example?
  6. Can you show us your code? Make sure you are registering the events.
    • Agree Agree x 1
  7. In InventoryClickEvent check if Cursor and Current item aren't null and aren't air.