Coming back to PMMP development from one of the spoons; I am returned to something that always caused me much irritation. When run from source; PMMP gives this message in console: [Server thread/WARNING]: Non-packaged PocketMine-MP installation detected, do not use on production. It also does not seem to load plugins correctly and console messaging differs from a normal packaged run. The workaround for those developers who wish to learn to contribute to PMMP code: 1) use DevTools plugin to "makeserver" 2) execute and test using the resulting .phar 3) modify source and go back to step 1 This increases the number of steps when doing iterative development. Is it necessary? Why not allow running from source to be the same as running from packaged? What code would need to be changed to accomplish this?
It is a temporary issue that packaged phars do not work well. Non-packaged installation may load slower and is not favourable for some security reasons. "Do not use on production" means it only matters for production servers. If you are contributing to PMMP code, you aren't on a production server, and you can ignore that message.
There seems to be more to it than this. It doesn't seem to load plugins properly -- and I'm realizing this is even true of the phar built with DevTools "makeserver". It seems like the only way to get a fully running .phar is via Jenkins; or by somehow getting the jenkins optimization code running locally to properly build the server. How would I even go about doing this? What repository is the code Jenkins uses stored in?
Can you elaborate? This should not be true, since we always do development in source code. Did you set your include path wrongly?
EDIT: I just read the current instructions from the MUCH updated documentation site (yay), and used git to download current source. The example I was going to use seems to have already been corrected. https://pmmp.readthedocs.io/en/rtfd/installation.html#installing-manually Code: git clone --recursive https://github.com/pmmp/pocketmine-mp.git pocketmine-mp.git I apologize. I was using old source. Maybe this is a non-issue. I will continue testing.