Solved Checking player inventories

Discussion in 'Spigot Plugin Development' started by StereoN, Jun 17, 2018.

  1. Hello, I'm making an /invsee plugin, and I have some LeftClick, and RightClick, etc, actions. But I don't want them to be executed in my own inventory.

    Code (Text):

    Player pr = e.getWhoClicked();

    if(pr.getInventory() == e.getInventory())
    And this is what I've tried, but it doesn't work. Any ideeas?
  2. Thank you :)) I've changed it, but it doesn't change anything
    • Winner Winner x 1
  3. Yes, thank you, it worked :D. I didn't think of .getBottomInventory()