Simple PHP script for controlling the lifecycle of PocketMine servers
LGPL-3.0 License
Simple scripts for controlling the lifecycle of PocketMine servers
This is a proof of concept that is tested on Windows.
php/functions.php
and php/wrapper.php
together into anywhere in your system.cd
to your PocketMine-MP install directory. If ./PocketMine-MP.phar
is absent, the script will attempt to load src/pocketmine/PocketMine.php
(run-from-source) instead.php/wrapper.php
with PHP (with the current working directory at your PocketMine-MP install directory!). You are recommended to use the PHP binaries provided by PocketMine-MP installer, since the php_pthreads
extension is required. For example, on Windows:bin\php\php.exe %USERPROFILE%\Downloads\wrapper.php
Note: To avoid warnings related to timezones, edit your
php.ini
(usually next to yourphp.exe
) and add this line:date.timezone=Asia/Hong_Kong
Replace Asia/Hong_Kong with your timezone (https://php.net/timezones)
0
to make server run for infinite times, type 1
to run server once only, 2
for twice, vice versa. Then click enter./stop
) and then stop restarting, type -die
then enter.-kill
then enter.-mypid
then enter.-pmpid
then enter.