mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 04:29:43 +00:00
Added bad connection message
This commit is contained in:
parent
4e6949e518
commit
f1b2bc248f
1 changed files with 3 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue