http://docs.pocketmine.net/dc/d77/classpocketmine_1_1inventory_1_1_player_inventory.html setItemInHand()
For people still looking: PHP: // Change the Hotbar slot to one from the inventory:$player->getInventory()->setHeldItemSlot($slot);// Change the Hotbar slot from other Hotbar slot:$player->getInventory()->setHeldItemIndex($hotbarslot);
Erm that's wrong (I tried it), it sets what slot from the inventory is used for the hotbar slot that the player is currently using... This is what I use (It works): PHP: $player->getInventory()->setHeldItemIndex($hotbarslot);