Issue with getClickedInventory() method

Discussion in 'Plugin Development' started by Tibbelsinator, Sep 8, 2024.

  1. Offline

    Tibbelsinator

    Im making a minecraft plugin (1.21) right now and i ran into a problem,
    if(event.getClickedInventory().getName().equals("InventoryName")) {

    }
    The getName() method doesnt exist for some reason, i wanna check for the inventory to block clicking in that inventory. Any help is appreciated!
     
  2. Offline

    KarimAKL

Share This Page