Changed files

This commit is contained in:
Shoghi Cervantes Pueyo
2012-12-28 15:12:46 +01:00
parent 0b683c6b0e
commit 8abc36acd4
5 changed files with 5 additions and 5 deletions

View File

@@ -30,7 +30,7 @@ class ConsoleAPI{
function __construct(PocketMinecraftServer $server){
$this->help = array();
$this->server = $server;
$this->input = fopen(FILE_PATH."console.in", "w+b");
$this->input = fopen(FILE_PATH."src/console.in", "w+b");
$this->last = microtime(true);
}

35
src/input.php Normal file
View File

@@ -0,0 +1,35 @@
<?php
/*
-
/ \
/ \
/ PocketMine \
/ MP \
|\ @shoghicp /|
|. \ / .|
| .. \ / .. |
| .. | .. |
| .. | .. |
\ | /
\ | /
\ | /
\ | /
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
*/
$fp = fopen(dirname(__FILE__)."/console.in","wb");
while(true){
$l = fgets(STDIN);
fwrite($fp, $l);
if(strtolower(trim($l)) === "stop" and isset($argv[1]) and trim($argv[1]) == "1"){
die();
}
}