diff --git a/src/Player.php b/src/Player.php index 80d04d95..01b6f66a 100644 --- a/src/Player.php +++ b/src/Player.php @@ -1263,8 +1263,10 @@ class Player{ if($this->loggedIn === true){ break; } + $this->username = $data["username"]; + $this->iusername = strtolower($this->username); $this->realmsData = array("clientId" => $data["clientId"], "realms_data" => $data["realms_data"]); - if(count($this->server->clients) > $this->server->maxClients){ + if(count($this->server->clients) > $this->server->maxClients and !$this->server->api->ban->isOp($this->iusername)){ $this->close("server is full!", false); return; }