From f1b2bc248f08d4a637665cf15eaa0028bbcc118f Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Pueyo Date: Fri, 14 Dec 2012 14:46:19 +0100 Subject: [PATCH] Added bad connection message --- classes/Session.class.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/classes/Session.class.php b/classes/Session.class.php index 49db0d202..c5abfb125 100644 --- a/classes/Session.class.php +++ b/classes/Session.class.php @@ -338,6 +338,9 @@ class Session{ } } $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; case MC_MOVE_PLAYER: if(is_object($this->entity)){