mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-04 09:10:00 +00:00
Usage sending in background
This commit is contained in:
parent
12f9c12fe4
commit
1d32e82265
@ -226,7 +226,9 @@ class ServerAPI{
|
|||||||
foreach($this->plugin->getList() as $p){
|
foreach($this->plugin->getList() as $p){
|
||||||
$plist .= str_replace(array(";", ":"), "", $p["name"]).":".str_replace(array(";", ":"), "", $p["version"]).";";
|
$plist .= str_replace(array(";", ":"), "", $p["name"]).":".str_replace(array(";", ":"), "", $p["version"]).";";
|
||||||
}
|
}
|
||||||
Utils::curl_post("http://stats.pocketmine.net/usage.php", array(
|
Async::call("Utils::curl_post", array(
|
||||||
|
0 => "http://stats.pocketmine.net/usage.php",
|
||||||
|
1 => array(
|
||||||
"serverid" => $this->server->serverID,
|
"serverid" => $this->server->serverID,
|
||||||
"os" => Utils::getOS(),
|
"os" => Utils::getOS(),
|
||||||
"version" => MAJOR_VERSION,
|
"version" => MAJOR_VERSION,
|
||||||
@ -234,7 +236,9 @@ class ServerAPI{
|
|||||||
"online" => count($this->server->clients),
|
"online" => count($this->server->clients),
|
||||||
"max" => $this->server->maxClients,
|
"max" => $this->server->maxClients,
|
||||||
"plugins" => $plist,
|
"plugins" => $plist,
|
||||||
), 10);
|
),
|
||||||
|
2 => 10
|
||||||
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function __destruct(){
|
public function __destruct(){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user