Hello everyone, I need to code a plugin with command: "/giveitem <player> <amount>" But I don't know the code "<player> <amount>", can you tell me, thanks I use google translate to post this, Because my English is very bad (╥﹏╥)
You can use PluginBase’s onCommand function and use CommandSender as your “player”, and simply use VanillaItems::ITEM_NAME()->setCount(amount) to set an items amount. https://github.com/pmmp/PocketMine-MP/blob/stable/src/item/VanillaItems.php