mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 12:18:46 +00:00
Added Player::realmsData for future checking
This commit is contained in:
parent
4755dee47d
commit
e67b583cbe
@ -79,6 +79,7 @@ class Player{
|
|||||||
public $lastCraft = 0;
|
public $lastCraft = 0;
|
||||||
private $chunkCount = array();
|
private $chunkCount = array();
|
||||||
private $received = array();
|
private $received = array();
|
||||||
|
public $realmsData = array();
|
||||||
|
|
||||||
public function __get($name){
|
public function __get($name){
|
||||||
if(isset($this->{$name})){
|
if(isset($this->{$name})){
|
||||||
@ -1034,6 +1035,7 @@ class Player{
|
|||||||
if($this->loggedIn === true){
|
if($this->loggedIn === true){
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
$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){
|
||||||
$this->close("server is full!", false);
|
$this->close("server is full!", false);
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user