mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 03:59:43 +00:00
mobs wont spawn if brightness is too high, aditional file with world data for storing additional information
This commit is contained in:
parent
d1a724c143
commit
cd07581d49
4 changed files with 175 additions and 13 deletions
|
|
@ -210,7 +210,11 @@ class ConsoleAPI{
|
|||
case "status":
|
||||
$info = $this->server->debugInfo();
|
||||
if(!($issuer instanceof Player) && $issuer === "console"){
|
||||
return "TPS: {$info["tps"]}, Memory usage: {$info["memory_usage"]} (Peak {$info["memory_peak_usage"]}), Entities: {$info["entities"]}, Events: {$info["events"]}, Handlers: {$info["handlers"]}, Actions: {$info["actions"]}, Garbage: {$info["garbage"]}";
|
||||
$lightUpdates = 0;
|
||||
foreach($this->server->api->level->levels as $level){
|
||||
$lightUpdates += count($level->lightUpdates);
|
||||
}
|
||||
return "TPS: {$info["tps"]}, Memory usage: {$info["memory_usage"]} (Peak {$info["memory_peak_usage"]}), Entities: {$info["entities"]}, Events: {$info["events"]}, Handlers: {$info["handlers"]}, Actions: {$info["actions"]}, Garbage: {$info["garbage"]} Light updates: {$lightUpdates}";
|
||||
}
|
||||
return "TPS: {$info["tps"]}, Memory usage: {$info["memory_usage"]} (Peak {$info["memory_peak_usage"]})";
|
||||
case "stop":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue