mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-01 23:59:53 +00:00
Fixed #1058
This commit is contained in:
parent
e659f435df
commit
cfb3bbfbf2
@ -1300,6 +1300,10 @@ class Player{
|
|||||||
if($u !== false){
|
if($u !== false){
|
||||||
$u->close("logged in from another location");
|
$u->close("logged in from another location");
|
||||||
}
|
}
|
||||||
|
if(!isset($this->CID) or $this->CID == null){
|
||||||
|
console("[DEBUG] Player ".$this->username." does not have a CID", true, true, 2);
|
||||||
|
$this->CID = Utils::readLong(Utils::getRandomBytes(8, false));
|
||||||
|
}
|
||||||
|
|
||||||
$this->server->api->player->add($this->CID);
|
$this->server->api->player->add($this->CID);
|
||||||
if($this->server->api->handle("player.join", $this) === false){
|
if($this->server->api->handle("player.join", $this) === false){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user