mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-21 10:26:38 +00:00
Added bad connection message
This commit is contained in:
parent
4e6949e518
commit
f1b2bc248f
@ -338,6 +338,9 @@ class Session{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
$this->eventHandler($this->server->motd, "onChat");
|
$this->eventHandler($this->server->motd, "onChat");
|
||||||
|
if($this->MTU <= 548){
|
||||||
|
$this->eventHandler("Your connection is bad, you may experience lag and slow map loading.", "onChat");
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case MC_MOVE_PLAYER:
|
case MC_MOVE_PLAYER:
|
||||||
if(is_object($this->entity)){
|
if(is_object($this->entity)){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user