mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 03:59:43 +00:00
OP's can now bypass the player limit.
This commit is contained in:
parent
7f4f6cdf05
commit
a09610b53f
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue