From a09610b53fae1f20c9302d37e85f715556ee6f3d Mon Sep 17 00:00:00 2001 From: kotyaralih <62548070+kotyaralih@users.noreply.github.com> Date: Sun, 5 Dec 2021 09:10:20 -0800 Subject: [PATCH] OP's can now bypass the player limit. --- src/Player.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; }