mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-05 17:36:12 +00:00
Added new sounds, events, particles
This commit is contained in:
@ -1801,12 +1801,6 @@ class Player extends Human implements CommandSender, InventoryHolder, ChunkLoade
|
||||
$this->displayName = $this->username;
|
||||
$this->setNameTag($this->username);
|
||||
$this->iusername = strtolower($this->username);
|
||||
$this->randomClientId = $packet->clientId;
|
||||
$this->loginData = ["clientId" => $packet->clientId, "loginData" => null];
|
||||
|
||||
$this->uuid = $packet->clientUUID;
|
||||
$this->clientSecret = $packet->clientSecret;
|
||||
$this->rawUUID = $this->uuid->toBinary();
|
||||
|
||||
if(count($this->server->getOnlinePlayers()) > $this->server->getMaxPlayers() and $this->kick("disconnectionScreen.serverFull", false)){
|
||||
break;
|
||||
@ -1831,6 +1825,13 @@ class Player extends Human implements CommandSender, InventoryHolder, ChunkLoade
|
||||
break;
|
||||
}
|
||||
|
||||
$this->randomClientId = $packet->clientId;
|
||||
$this->loginData = ["clientId" => $packet->clientId, "loginData" => null];
|
||||
|
||||
$this->uuid = $packet->clientUUID;
|
||||
$this->rawUUID = $this->uuid->toBinary();
|
||||
$this->clientSecret = $packet->clientSecret;
|
||||
|
||||
$valid = true;
|
||||
$len = strlen($packet->username);
|
||||
if($len > 16 or $len < 3){
|
||||
|
Reference in New Issue
Block a user