mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-03 08:35:20 +00:00
Server restart without closing, added more info
This commit is contained in:
11
server.php
11
server.php
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user