Check if player is clicking own inventory or custom

Discussion in 'Spigot Plugin Development' started by redstonebiten, May 19, 2016.

Thread Status:
Not open for further replies.
  1. Code (Java):
    @Override
    public void onInventoryClick(InventoryClickEvent event) {
        if (event.getRawSlot() < event.getInventory().getSize()) {
            // Upper / Created Inventory
        } else {
            // Player Inventory
        }
    }
     
  2. already got it fixed :p but thx :)
     
Thread Status:
Not open for further replies.