diff --git a/input.php b/input.php index 4d4d12d5..ac9d14c8 100644 --- a/input.php +++ b/input.php @@ -30,6 +30,6 @@ while(true){ $l = fgets(STDIN); fwrite($fp, $l); if(strtolower(trim($l)) === "stop" and isset($argv[1]) and trim($argv[1]) == "1"){ - sleep(5);die(); + die(); } } \ No newline at end of file diff --git a/start.bat b/start.cmd similarity index 92% rename from start.bat rename to start.cmd index e5b19f1b..6ed034d8 100644 --- a/start.bat +++ b/start.cmd @@ -1,5 +1,8 @@ @echo off TITLE Pocket-Minecraft-PHP Server - by @shoghicp +COLOR F0 +mode con: cols=90 + echo. echo - echo / \ @@ -25,4 +28,5 @@ ping 127.0.0.1 -n 3 -w 1000>nul ) else ( START /B CMD /C CALL php server.php START /B /WAIT php input.php 1 +ping 127.0.0.1 -n 5 -w 1000>nul ) \ No newline at end of file