Getting inventory after InventoryClickEvent

Discussion in 'Plugin Development' started by colmalle, Jul 24, 2020.

  1. Offline

    colmalle

    I have noticed that the InventoryClickEvent is called before the inventory has updated. Is there a way to get the inventory after the event without a delay of 1 tick? Maybe any way to update the inventory?
     
  2. Offline

    KarimAKL

  3. Offline

    colmalle

    My goal is to check the items in the inventory after the InventoryClickEvent already happened. And the inventory after the change without waiting 1 tick
     
  4. Offline

    KarimAKL

    @colmalle But why do you want to do this? What's your end goal?
     
  5. Offline

    colmalle

    Im trying to check what are the items in the inventory and change it accordingly.
     
  6. Offline

    KarimAKL

    @colmalle So you want to know what the inventory looks like after the event without waiting? If that's the case, get the current inventory in the event and then apply the changes that are happening.
     

Share This Page