Separate names with a comma.
Comments in 'Plugin Development' started by PEMapModder, Nov 2, 2013.
Codes in init and __construct?
Also can I register codes in middle of plugin?
Init and construct are different. I don't think you can register command in the middle as pocket mine will look in init to find the nee commands. I'm not 100% sure though
__construct is a magic method in php, it will be called when the script gets loaded. The method init will be called by pocketmine itself when it starts the plugin. You can register commands everywhere in the code.
So just ignore absolutely everything I said