I recently switched from NetBeans to Eclipse PHP because of my good experience with Eclipse for Java (Eclipse points out the things I need to import unlike netbeans and actually tells me what went wrong with the code, plus since Eclipse PHP exports plugins as a phar it eliminates the need for DevTools) and because it requires a .phar for the API I used the pocketmine phar itself and it appeared to work so to test it I made a simple class extend pluginbase and nothing else. It didnt load and said the plugin had a broken signature, how do I fix this?
Switch back to NetBean is the easiest solution... Plus, if you have the correct folder structure, you should get a error-free plugin
Broken signature means your phar file is corrupted. This has nothing to do with your plugin source code. In simple words, there is a problem with Eclipse's phar creation.
Iirc Ellipse has a feature called "Run". You may add the ConsoleScript.php from DevTools as the script to run, providing the appropriate arguments. Then you can run the ConsoleScript.php to compile the plugin into a phar.
NetBeans dosent tell me what to import from the pocketmine library, does not tell me what went wrong with wrongly used code and requires DevTools to run plugins (not so much about DevTools its mainly the first 2 problems)
You mean importing the pocketmine phar itself as the makeshift API didn't break anything? also I unticked all resources to export except plugin.yml, maybe that was the problem? Umm, mind explaining a little further?
No. I don't know the details. I simply know "it doesn't work" because the phar file created by eclipse is not even a valid phar file Just use ConsoleScript and don't use eclipse's phar builder. Or just write your own phar making PHP script. Making a phar file online is even more inconvenient than using DevTools...
i beg to differ. it took me 3x longer to update the exact same game on my PE server compared to just 2 weeks on my PC server
Edit: It appears there is nothing wrong with Eclipse after all, I exported the exact same way a second time and now it works