Separate names with a comma.
Comments in 'Plugin Development' started by Syriamanal, Nov 26, 2013.
I need to get a code that will auto maticaly restart the server thanks
You can't "restart" the server without a loop in your start.sh
And it will not work on Windows, but on the application I am making, I hope to make a restart button that will stop the server, wait a tick and then start it
Can u do it pleas thanks
That would be helpful, but you still couldn't call it in a plugin
Yes, of course not, because a plugin runs when the server is running, when the server stops, so does the plugin and it wouldn't be able to restart it, you would need a looped start.sh, then you could make a plugin that stops the server every so often and have the loop bring it back up
I think @Xfusionios asked for this and @Antisober552 gave it too him, you will have to ask anti
Will this work
Not sure, I haven;t worked with loops before xD
TITLE Spleef Games
echo Spleef Games Reloader by Syriamanal
echo Wait a bit! Reloading Map...
echo y|rd players /s > nul
echo y|rd worlds /s > nul
md worlds\Spleef Games
copy Spleef\chunks.dat worlds\Spleef Games\ > nul
copy Spleef\entities.dat worlds\Spleef Games\ > nul
copy Spleef\level.dat worlds\Spleef Games\ > nul
if exist bin\ansicon.exe (
bin\ansicon.exe php.cmd -d enable_dl=On PocketMine-MP.php --enable-ansi %*
) else (
php.cmd -d enable_dl=On PocketMine-MP.php %*