mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
Added .BAT for async command I/O in one window
This commit is contained in:
@ -27,5 +27,9 @@ the Free Software Foundation, either version 3 of the License, or
|
||||
|
||||
$fp = fopen(dirname(__FILE__)."/console.in","wb");
|
||||
while(true){
|
||||
echo "/";fwrite($fp, fgets(STDIN));
|
||||
$l = fgets(STDIN);
|
||||
fwrite($fp, $l);
|
||||
if(strtolower(trim($l)) === "stop" and isset($argv[1]) and trim($argv[1]) == "1"){
|
||||
sleep(5);die();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user