Added new sounds, events, particles

This commit is contained in:
Shoghi Cervantes
2015-08-03 12:42:47 +02:00
parent 2b2a1b18e7
commit 522932d7c0
34 changed files with 623 additions and 31 deletions

View File

@ -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){