Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-7436

Add "InventoryChangeEvent" to spigot


    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • None
    • 1.20.1
    • Yes

      So, vanilla minecraft has an advancement trigger for when the content of a players inventory were changed, and it would be very nice to have this within the spigot-api aswell, like a InventoryChangeEvent.

      Some methods this may include:

      Player getPlayer();
      List<ItemStack> getPreviousContent();
      List<ItemStack> getNewContent();
      ChangeReason getChangeReason(); // if the event was triggered by dropping items, collecting, taking out of other inv, command, plugin etc

            coll1234567 coll1234567
            moricexy morice
            0 Vote for this issue
            1 Start watching this issue