mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-17 03:08:58 +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\Server;
|
||||||
use pocketmine\utils\Utils;
|
use pocketmine\utils\Utils;
|
||||||
use pocketmine\utils\VersionString;
|
use pocketmine\utils\VersionString;
|
||||||
|
use pocketmine\utils\UUID;
|
||||||
|
|
||||||
class SendUsageTask extends AsyncTask{
|
class SendUsageTask extends AsyncTask{
|
||||||
|
|
||||||
@ -39,9 +40,9 @@ class SendUsageTask extends AsyncTask{
|
|||||||
$endpoint = "http://" . $server->getProperty("anonymous-statistics.host", "stats.pocketmine.net") . "/";
|
$endpoint = "http://" . $server->getProperty("anonymous-statistics.host", "stats.pocketmine.net") . "/";
|
||||||
|
|
||||||
$data = [];
|
$data = [];
|
||||||
$data["uniqueServerId"] = $server->getServerUniqueId();
|
$data["uniqueServerId"] = $server->getServerUniqueId()->toString();
|
||||||
$data["uniqueMachineId"] = Utils::getMachineUniqueId();
|
$data["uniqueMachineId"] = Utils::getMachineUniqueId()->toString();
|
||||||
$data["uniqueRequestId"] = Utils::dataToUUID($server->getServerUniqueId(), microtime(true));
|
$data["uniqueRequestId"] = UUID::fromData($server->getServerUniqueId(), microtime(true))->toString();
|
||||||
|
|
||||||
switch($type){
|
switch($type){
|
||||||
case self::TYPE_OPEN:
|
case self::TYPE_OPEN:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user