Updated some packets for 0.12, UUIDs, other stuff!

This commit is contained in:
Shoghi Cervantes
2015-08-02 01:22:36 +02:00
parent 4258e22c02
commit 5621ab0c49
27 changed files with 951 additions and 380 deletions

View File

@ -101,13 +101,13 @@ class SendUsageTask extends AsyncTask{
//This anonymizes the user ids so they cannot be reversed to the original
foreach($playerList as $k => $v){
$playerList[$k] = Utils::dataToUUID($v);
$playerList[$k] = md5($v);
}
$players = [];
foreach($server->getOnlinePlayers() as $p){
if($p->isOnline()){
$players[] = Utils::dataToUUID($p->getUniqueId());
$players[] = md5($p->getUniqueId()->toBinary());
}
}