Separate names with a comma.
Comments in 'Plugin Development' started by pub4game, Sep 1, 2015.
Can I remove the unit from the menu of creative? For example a bucket of lava
you can edit it in pocketmine source code but using plugin too
Could you do me an example? Please remove the diamond block ID 57
So if you were doing that then would this be correct practise.
Yaa But what event do we use for the function???
is it pocketmine\inventory\inventory
Nope, it's pocketmine\item\Item
and the function name? Eg. onJoin
Parse error: syntax error, unexpected '$item' (T_VARIABLE) on line 58
$item = 57;
Item::clearCreativeItems (Item $item);
This isn't Java.
You mean removeCreativeItem?
It's Item::removeCreativeItem(). Please make sure you understand what they are asking for before providing a solution.
He only asked how to remove an item/unit.
i think he is not stupid and if so, it is not my problem
Whoever understands what is going on, even without having to know PocketMine API, knows what's happening. Can you just be a bit less serious?