mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Player: now can get pingMs
This commit is contained in:
parent
d63cbc1722
commit
a17074ce20
2 changed files with 21 additions and 3 deletions
|
|
@ -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){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue