On the InventoryTransactionEvent you can't get the player who calls the event. How would I be able to get the player?
Read source. PHP: /** @var InventoryTransactionEvent $event */$inventories = $event->getTransaction()->getInventories();$player = null;foreach($inventories as $inv){ foreach($inv->getViewers() as $unknown){ if($unknown instanceof Player){ $player = $unknown; break 2; } }}//If no players, $player = null.$player->sendMessage("hey stop transactioning"); The gfork has a better implementation tho. You can get it easily in the gfork without bulk code. Hope it gets merged into pmmp.