mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-16 18:59:00 +00:00
Fixed not sending UUIDs properly
This commit is contained in:
parent
24f8de2cc3
commit
ed559fdf98
@ -25,6 +25,7 @@ use pocketmine\network\protocol\Info;
|
||||
use pocketmine\Server;
|
||||
use pocketmine\utils\Utils;
|
||||
use pocketmine\utils\VersionString;
|
||||
use pocketmine\utils\UUID;
|
||||
|
||||
class SendUsageTask extends AsyncTask{
|
||||
|
||||
@ -39,9 +40,9 @@ class SendUsageTask extends AsyncTask{
|
||||
$endpoint = "http://" . $server->getProperty("anonymous-statistics.host", "stats.pocketmine.net") . "/";
|
||||
|
||||
$data = [];
|
||||
$data["uniqueServerId"] = $server->getServerUniqueId();
|
||||
$data["uniqueMachineId"] = Utils::getMachineUniqueId();
|
||||
$data["uniqueRequestId"] = Utils::dataToUUID($server->getServerUniqueId(), microtime(true));
|
||||
$data["uniqueServerId"] = $server->getServerUniqueId()->toString();
|
||||
$data["uniqueMachineId"] = Utils::getMachineUniqueId()->toString();
|
||||
$data["uniqueRequestId"] = UUID::fromData($server->getServerUniqueId(), microtime(true))->toString();
|
||||
|
||||
switch($type){
|
||||
case self::TYPE_OPEN:
|
||||
|
Loading…
x
Reference in New Issue
Block a user