diff --git a/matchinfo.php b/matchinfo.php
index 26d160b..85072c7 100644
--- a/matchinfo.php
+++ b/matchinfo.php
@@ -89,6 +89,8 @@ $lastMatches = array_slice($allMatches, 0, 8);
Kills |
humankills |
Total Damage |
+ Rank |
+ DBNOs |
";
$directory = 'data/killstats/';
@@ -107,7 +109,9 @@ $lastMatches = array_slice($allMatches, 0, 8);
$playerStats = $includedItem['attributes']['stats'];
if ($individualPlayerName == $playerStats['name']) {
$damageDealt = $playerStats['damageDealt'];
- break; // Stop searching once the player is found
+ $rank = $playerStats['winPlace'];
+ $DBNOs = $playerStats['DBNOs'];
+ break;
}
}
}
@@ -116,7 +120,9 @@ $lastMatches = array_slice($allMatches, 0, 8);
echo "" . htmlspecialchars($individualPlayerName) . " | ";
echo "" . htmlspecialchars($jsonData_individual_player['stats']['humankills']) . " | ";
echo "" . htmlspecialchars($jsonData_individual_player['stats']['kills']) . " | ";
- echo "" . htmlspecialchars($damageDealt) . " | "; // Display damageDealt here
+ echo "" . htmlspecialchars($damageDealt) . " | ";
+ echo "" . htmlspecialchars($rank) . " | ";
+ echo "" . htmlspecialchars($DBNOs) . " | ";
echo "";
}
echo "";