mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
Server restart without closing, added more info
This commit is contained in:
parent
29d253fd93
commit
fb019a88c1
6 changed files with 26 additions and 9 deletions
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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue