mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
New way to measure Ping
This commit is contained in:
parent
03e059a190
commit
566cee2b0b
2 changed files with 18 additions and 22 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue