@@ -61,9 +61,9 @@ |
||
| 61 | 61 | $result = array_merge($result, $this->check('general', $result)); |
| 62 | 62 | |
| 63 | 63 | // Check FiveM Player List |
| 64 | - if ($result['gq_protocol'] == "gta5m") { |
|
| 65 | - $result['players'] = $this->getFiveMPlayerList(sprintf('%s:%s', (isset($result['gq_address'])) ? $result['gq_address'] : $server->ip(), $result['gq_port_client'])); |
|
| 66 | - } |
|
| 64 | + if ($result['gq_protocol'] == "gta5m") { |
|
| 65 | + $result['players'] = $this->getFiveMPlayerList(sprintf('%s:%s', (isset($result['gq_address'])) ? $result['gq_address'] : $server->ip(), $result['gq_port_client'])); |
|
| 66 | + } |
|
| 67 | 67 | |
| 68 | 68 | // Do player information |
| 69 | 69 | if (isset($result['players']) && count($result['players']) > 0) { |
@@ -105,7 +105,7 @@ |
||
| 105 | 105 | $players = []; |
| 106 | 106 | $data = json_decode($json); |
| 107 | 107 | foreach ($data as $player) { |
| 108 | - $players[] = array("id" => $player->id, "name" => $player->name,"ping" => $player->ping, "identifiers" => $player->identifiers); |
|
| 108 | + $players[] = array( "id" => $player->id, "name" => $player->name, "ping" => $player->ping, "identifiers" => $player->identifiers ); |
|
| 109 | 109 | } |
| 110 | 110 | return $players; |
| 111 | 111 | } |