1.12.2 InventoryInteractEvent not firing

Discussion in 'Spigot Plugin Development' started by Ch1ckenman, Mar 30, 2020.

Thread Status:
Not open for further replies.
  1. I am playing around with the inventory interact event but I am unable to get the event to ever fire, it is only this event though, if I change the event to the player move event, or really any other event, the event fires just fine (Same class). Class is registered in the main class.

    Code (Text):
        @EventHandler
        public void inventoryInteract(InventoryInteractEvent event) {
            event.getWhoClicked().sendMessage("asd");
            System.out.println("asd");
        }
     
  2. InventoryInteractEvent is abstract, you have to use one of its implementations, such as either InventoryClickEvent or InventoryDragEvent
     
    • Like Like x 1
    • Informative Informative x 1
Thread Status:
Not open for further replies.