mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-13 15:05:33 +00:00
Removed entity metadata setting from LoginPacket handler
why the f was this here
This commit is contained in:
parent
3bda1473e7
commit
fdfe70b9f2
@ -1837,7 +1837,7 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected function initHumanData(){
|
protected function initHumanData(){
|
||||||
//No need to do anything here, this data will be set from the login.
|
$this->setNameTag($this->username);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function initEntity(){
|
protected function initEntity(){
|
||||||
@ -2045,7 +2045,6 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
|
|||||||
$this->username = TextFormat::clean($packet->username);
|
$this->username = TextFormat::clean($packet->username);
|
||||||
$this->displayName = $this->username;
|
$this->displayName = $this->username;
|
||||||
$this->iusername = strtolower($this->username);
|
$this->iusername = strtolower($this->username);
|
||||||
$this->setDataProperty(self::DATA_NAMETAG, self::DATA_TYPE_STRING, $this->username, false);
|
|
||||||
|
|
||||||
if(count($this->server->getOnlinePlayers()) >= $this->server->getMaxPlayers() and $this->kick("disconnectionScreen.serverFull", false)){
|
if(count($this->server->getOnlinePlayers()) >= $this->server->getMaxPlayers() and $this->kick("disconnectionScreen.serverFull", false)){
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user