Can someone help find a way to attach my main file to my plugin? I am new to this and I couldn't find any other posts on here with the same issue. Edit: I forgot to attach the code in Main.php so here you go: PHP: <?phpnamespace TestPlugin;use pocketmine\plugin\PluginBase;class MainClass extends PluginBase { public function onLoad() : void{ $this->getLogger()->info("Plugin Loading"); }}
Also, you don't have to include the exact api in your plugin.yml, 4.0.0 will work fine unless your using one that depends exactly on that version of pocketmine. Just so that you don't have to keep updating plugins that really don't need to be updated.