Solved How to get the name of an inventory in 1.17.1

Discussion in 'Spigot Plugin Help' started by stvnzii, Jan 15, 2022.

  1. Before I used InventoryView#getTitle as the Inventory class had a getView method, but now I can't seem to find the method. Is there an alternate method that I've missed?
  2. Code (Text):
  3. Yes I know that method exists, but I don't know how to get the inventory view in the first place, as Inventory#getView doesn't exist
  4. You are using InventoryClickEvent?
  5. I am using the InventoryMoveItemEvent, and getting the inventory from InventoryMoveItemEvent#getDestination
  6. Unable to get inventory name with InventoryMoveItemEvent.
  7. Ah ok thanks I'll figure something out.