Click event get inventory name

Discussion in 'Plugin Development' started by Rockyers, Nov 22, 2020.

Thread Status:
Not open for further replies.
  1. Offline

    Rockyers

    Hello, its pretty simple but I just need to get the name of an inventory and compare it to another one. Ive tried e.getClickedInventory.getTitle, but .getTitle doesn't exist and .getName doesn't exist, and I just cant find any way to do it. (Im using this to cancel a click event in one inventory) Also I'm using 1.16.4

    (EDIT: I was able to figure it out, I used (e.getView().getTitle().equalsIgnoreCase() for anyone who needs it)
     
    Last edited: Nov 22, 2020
Thread Status:
Not open for further replies.

Share This Page