Muqsit / InvMenu

A PocketMine-MP virion to create and manage virtual inventories!
https://poggit.pmmp.io/ci/Muqsit/InvMenu/~
GNU General Public License v3.0
201 stars 75 forks source link

Question #67

Closed xorbs closed 4 years ago

xorbs commented 4 years ago

How can I get item name in a particular slot?? sorry

Muqsit commented 4 years ago
/** @var InvMenu $menu */
$slot = 3;
$name = $menu->getInventory()->getItem($slot)->getName();