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!
@Tibbelsinator For versions above 1.13, you have to use InventoryEvent#getView() to get the InventoryView, then use #getTitle from there.