getOnlinePlayers() only returns the players already connected

This commit is contained in:
LouisBHirst 2015-09-13 11:43:51 -04:00
parent cb222601fd
commit c7b915639d

View File

@ -1624,7 +1624,7 @@ class Player extends Human implements CommandSender, InventoryHolder, ChunkLoade
$this->uuid = Utils::dataToUUID($this->randomClientId, $this->iusername, $this->getAddress());
if(count($this->server->getOnlinePlayers()) > $this->server->getMaxPlayers() and $this->kick("disconnectionScreen.serverFull", false)){
if(count($this->server->getOnlinePlayers()) >= $this->server->getMaxPlayers() and $this->kick("disconnectionScreen.serverFull", false)){
break;
}