New way to measure Ping

This commit is contained in:
Shoghi Cervantes
2013-06-04 01:12:22 +02:00
parent 03e059a190
commit 566cee2b0b
2 changed files with 18 additions and 22 deletions

View File

@@ -157,7 +157,7 @@ class PlayerAPI{
$output .= "Please run this command in-game.\n";
break;
}
$output .= "Lag: ".round($issuer->getLag(), 2)."\n";
$output .= "ping ".round($issuer->getLag(), 2)."ms, packet loss ".round($issuer->getPacketLoss() * 100, 2)."%\n";
break;
case "gamemode":
$player = false;