I was just about to make the plugin pocketmine, but the problem is I do not know the code of the code to make the plugin pocketmine. so, please tell me the code of code and how to create a plugin for pocketmine
lets start with the very basic foundation: PHP - to learn it visit PHP.net here is a more direct link http://php.net/manual/en/langref.php PHP OOP - http://php.net/manual/en/language.oop5.php after that you are pretty much all set, you have a few options: you can go with learning from other plugins OR Learning from reading the source code itself regardless which you choose if you have a stable foundation there almost nothing can ever stop you from doing what you wanted
In all honesty I wouldn't trust many YouTube tutorials. A lot of the ones I've come across have been outdated or use terrible methods. The only YouTube channel I've found that has good, modern tutorials is CodeCourse, but he is more aimed at the web-development side (tutorials on frameworks like Laravel and Slim) so most of his more recent stuff would be useless here. I would recommend he look at the php docs first to get a general feel of the language.
same here i am more inclined to say use PHP.net even tho some of the websites offer nice ways to get into PHP
At the very least OP should (try to) stay away from generic YouTube tutorials and W3Schools. I have seen some horrid and just plain incorrect examples/tutorials on both those sites and they can be very misleading to those just starting out.
In my opinion practising is the best way to learn coding there is. Try to start using the SUPER basic things, and build upon that. Want to know how to create an array? Search for how to create an array in php. Want to know how to get a player by name? Search the internet. This is in my opinion the best way to learn PHP AND PocketMine API there is. Coding and plugin developing isn't a thing you learn in a day. You have to practise over and over, and learn from your mistakes. Learning basic PHP is definitely required first though.
Assuming he knows little to no php, his first step should probably be to read up the docs before jumping into plugin development. Learning the language the API is in is always a good first step. Otherwise yeah I agree here. Practice makes perfect after all. Reading the Pocketmine source and other people's plugins is a good way to learn plugin development as well (though not really a good way to learn the language itself)
Yes, I totally agree. If people now php, they will have no problem reading PM src code and understanding how to do things instantly.