In a custom chest type inventory, distinguish between player's inventory and the inside of the chest

Discussion in 'Plugin Development' started by Nukreeper64, Jan 25, 2015.

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

    Nukreeper64

    I am creating a chest shop plugin, and when the player right clicks a chest shop, it makes the player open a custom inventory object.
    2015-01-25_21.08.17.png
    My problem is that when a player right clicks the cobblestone in their personal inventory, the getSlot() method returns the same value as if they had right clicked the white flower. Is there any way to distinguish between these two click locations?
     
  2. Offline

    ArticleZero

Thread Status:
Not open for further replies.

Share This Page