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
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
@Echo off TITLE Spleef Games echo Spleef Games Reloader by Syriamanal echo Wait a bit! Reloading Map... cd %CD% echo y|rd players /s > nul echo y|rd worlds /s > nul del console.log 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 %* ) start start.bat exit