Hello Guys, i have a question, how can i make the $sender get the items when he executes a command? thanks PHP: case 'hello': //what do i need to put here? break;
PHP: use pocketmine\Player;use pocketmine\item\Item;if($sender instanceof Player) { $sender->getInventory()->addItem(Item::get((ID), (Meta), (Amount));}