Server restart without closing, added more info

This commit is contained in:
Shoghi Cervantes Pueyo
2012-12-12 00:07:55 +01:00
parent 29d253fd93
commit fb019a88c1
6 changed files with 26 additions and 9 deletions

View File

@ -29,7 +29,12 @@ require_once("common/dependencies.php");
require_once("classes/PocketMinecraftServer.class.php");
require_once("classes/API/ServerAPI.php");
$server = new ServerAPI();
//You can add simple things here
while(true){
$server = new ServerAPI();
//You can add simple things here
$server->start();
if($server->start() !== true){
break;
}
console("[NOTICE] The server is restarting...", true, true, 0);
}