I know there is function that can check whether player is holding an item. But i wanna know if there is an event to check if player is selecting item in inventory that maybe has custom name.
He never said it can't be a function from a library. He can look at the virion's code if he hates virions.
If I was developing a plugin like this I wouldn't use a virion just to make an if statement, I'd rather having a few steps on how to do it with my own code. What do you mean by select? Does it mean holding or picking it up from the inventory?
I've checked that api but from what i read it creates a fake inventory. I also saw about this callback that check if the item is clicked just what im looking for. I just dont know how to integrate it or if it will replace the normal inventory class. Can you show me a good example how can i use it. bool|void callback(Player $player, Item $itemClicked, Item $itemClickedWith, SlotChangeAction $action);.