mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-20 07:39:42 +00:00
New way to measure Ping
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user