mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
feat(Server): add a setter for maxPlayers
(#6261)
This commit is contained in:
@ -345,6 +345,10 @@ class Server{
|
|||||||
return $this->maxPlayers;
|
return $this->maxPlayers;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function setMaxPlayers(int $maxPlayers) : void{
|
||||||
|
$this->maxPlayers = $maxPlayers;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns whether the server requires that players be authenticated to Xbox Live. If true, connecting players who
|
* Returns whether the server requires that players be authenticated to Xbox Live. If true, connecting players who
|
||||||
* are not logged into Xbox Live will be disconnected.
|
* are not logged into Xbox Live will be disconnected.
|
||||||
|
Reference in New Issue
Block a user