Player: now can get pingMs

This commit is contained in:
Sunch 2025-03-21 12:11:05 +08:00
parent d63cbc1722
commit a17074ce20
2 changed files with 21 additions and 3 deletions

View file

@ -618,6 +618,9 @@ class PocketMinecraftServer{
foreach($this->clients as $client){
$client->handlePacketQueues();
if($this->ticks % 40 == 0){ //2s
$client->sendPing();
}
}
foreach($this->api->level->levels as $l){