mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Removed restart command due to a huge memory leak
... Caused by free'd objects looped looping around itself calling each one and become HAL
This commit is contained in:
parent
fb019a88c1
commit
c15f8cfda6
5 changed files with 10 additions and 5 deletions
|
|
@ -48,11 +48,11 @@ class ConsoleAPI{
|
|||
console("[INFO] Stopping the server...");
|
||||
$this->server->close();
|
||||
break;
|
||||
case "restart":
|
||||
/*case "restart":
|
||||
console("[INFO] Restarting the server...");
|
||||
$this->server->api->restart = true;
|
||||
$this->server->close();
|
||||
break;
|
||||
break;*/
|
||||
case "banip":
|
||||
$p = strtolower(array_shift($params));
|
||||
switch($p){
|
||||
|
|
@ -179,7 +179,7 @@ class ConsoleAPI{
|
|||
console("[INFO] /whitelist: Manages whitelisting");
|
||||
console("[INFO] /banip: Manages IP ban");
|
||||
console("[INFO] /stop: Stops the server");
|
||||
console("[INFO] /restart: Restarts the server");
|
||||
//console("[INFO] /restart: Restarts the server");
|
||||
foreach($this->help as $c => $h){
|
||||
console("[INFO] /$c: ".$h[0]);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue