Ajneb97 / ConditionalEvents

MIT License
22 stars 12 forks source link

Detection error with "Inventory Move" event #25

Closed DieG0Dig closed 10 months ago

DieG0Dig commented 1 year ago

I am using Paper for version 1.20 and when testing with the item move event from the debug when moving items from the player's inventory in survival it detects it as type "CRAFTING" instead of "PLAYER" as the Spigot documentation says.

This is the event I did.

  item:
    type: item_move
    conditions:
    - "%inventory_type% == PLAYER"
    - '%slot% == 1'
    actions:
      default:
      - "message: &cNope!"
      - "cancel_event: true"
DieG0Dig commented 1 year ago

When switching to CRAFTING it now detects all the slots in the player's inventory. I guess it must be some error with the Spigot documentation.