Checking if a player has a item with a name on InventoryClickEvent

Discussion in 'Plugin Development' started by PorkSkullsDev, Jan 31, 2021.

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

    PorkSkullsDev

    Hello Bukkit users,

    I am trying to make a plugin where if you have a certain item in your inventory with a name from config, it will take 1 of them from all of your inventory.

    I have tried multiple things it I just ended up failing, any help is welcomed!

    Kind Regards, PorkSkulls
     
  2. Offline

    Kars

    Inventory#containsAtLeast.
    or better yet Inventory#all would actually give you 1 (or several) slots in which the item exists.
     
Thread Status:
Not open for further replies.

Share This Page