Skip to content

Commit

Permalink
Updated BigBrother
Browse files Browse the repository at this point in the history
  • Loading branch information
hmy2001 committed Oct 7, 2017
1 parent df0b4c5 commit 3e5b224
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions src/shoghicp/BigBrother/network/Translator.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,20 +142,15 @@ public function interfaceToServer(DesktopPlayer $player, Packet $packet){

return $pk;
break;
/*case 1:
$statistic = [];
$statistic[] = ["achievement.openInventory", 1];//
foreach($player->achievements as $achievement => $count){
$statistic[] = ["achievement.".$achievement, $count];
}
case 1:
//TODO: stat https://gist.github.com/Alvin-LB/8d0d13db00b3c00fd0e822a562025eff
$statistic = [];

$pk = new StatisticsPacket();
$pk->count = count($statistic);//TODO stat
$pk->count = count($statistic);
$pk->statistic = $statistic;
$player->putRawPacket($pk);
break;*/
break;
default:
echo "ClientStatusPacket: ".$packet->actionID."\n";
break;
Expand Down

0 comments on commit 3e5b224

Please sign in to comment.