mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 20:49:43 +00:00
New stats
This commit is contained in:
parent
db8f50f408
commit
9b212ae034
1 changed files with 4 additions and 0 deletions
|
|
@ -199,7 +199,11 @@ class ServerAPI{
|
||||||
Utils::curl_post("http://stats.pocketmine.net/usage.php", array(
|
Utils::curl_post("http://stats.pocketmine.net/usage.php", array(
|
||||||
"serverid" => $this->server->serverID,
|
"serverid" => $this->server->serverID,
|
||||||
"os" => Utils::getOS(),
|
"os" => Utils::getOS(),
|
||||||
|
"memory_total" => $this->getProperty("memory-limit"),
|
||||||
|
"memory_usage" => memory_get_usage(true),
|
||||||
|
"php_version" => PHP_VERSION,
|
||||||
"version" => MAJOR_VERSION,
|
"version" => MAJOR_VERSION,
|
||||||
|
"mc_version" => CURRENT_MINECRAFT_VERSION,
|
||||||
"protocol" => CURRENT_PROTOCOL,
|
"protocol" => CURRENT_PROTOCOL,
|
||||||
"online" => count($this->server->clients),
|
"online" => count($this->server->clients),
|
||||||
"max" => $this->server->maxClients,
|
"max" => $this->server->maxClients,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue