Hi there, I just wrote a plugin on MacOS using Phpstorm, and every single line of the code is correct. So I copied the source code to my PocketMine-MP server which is running Windows Server 2008, and I tried to start the server, but no matter what I do it just keeps saying 'Could not load plugin' without any other message. Anybody help please?
Please screenshot the console (or copy the messages) and if you want you can send us the plugin for further analysis
Like I said, the message is 'Could not load plugin "myPlugin"', it's the only one. [Server thread/INFO]: Loading recipes... [Server thread/INFO]: Loading DevTools v1.1.1-iTX [Server thread/INFO]: Enabling DevTools v1.1.1-iTX [Server thread/CRITICAL]: Could not load plugin "My Plugin Which Is Wrote On MacOS" [Server thread/INFO]: [DevTools] Registered folder plugin loader That's all. And other source plugins works normally, there's no incorrect codes, the server just won't load it.
Can you enable debug lvl 2 in pocketmine.yml? (I have a suspicion with macosx doing .PluginName folders) And if you don't mind please send a zip with the plugin.
Manual backtracing: https://github.com/pmmp/PocketMine-Language/blob/master/eng.ini#L317 https://github.com/pmmp/PocketMine-.../src/pocketmine/plugin/PluginManager.php#L296 https://github.com/pmmp/PocketMine-.../src/pocketmine/plugin/PluginManager.php#L151 https://github.com/pmmp/PocketMine-...rc/pocketmine/plugin/PharPluginLoader.php#L64 Your plugin failed to load. Most likely because you did not declare the plugin description correctly or your files are not placed according to PSR-0 standards.
SORRY!! I just found out the problem came from a very stupid mistake, I did not create the src folder.. how stupid I was