Added login timeout for players that do not complete the login process in time

This commit is contained in:
Shoghi Cervantes
2015-05-14 14:52:39 +02:00
parent b1edfd7631
commit e61db8ad06
2 changed files with 11 additions and 8 deletions

View File

@@ -1495,7 +1495,7 @@ class Player extends Human implements CommandSender, InventoryHolder, IPlayer{
switch($packet->pid()){
case ProtocolInfo::LOGIN_PACKET:
if($this->loggedIn === true){
if($this->loggedIn){
break;
}