mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 18:32:55 +00:00
Player: remove iusername premature optimization
This commit is contained in:
@ -165,8 +165,6 @@ class Player extends Human implements CommandSender, ChunkLoader, ChunkListener,
|
||||
/** @var string */
|
||||
protected $username;
|
||||
/** @var string */
|
||||
protected $iusername;
|
||||
/** @var string */
|
||||
protected $displayName;
|
||||
/** @var int */
|
||||
protected $randomClientId;
|
||||
@ -277,7 +275,6 @@ class Player extends Human implements CommandSender, ChunkLoader, ChunkListener,
|
||||
|
||||
$this->username = $username;
|
||||
$this->displayName = $this->username;
|
||||
$this->iusername = strtolower($this->username);
|
||||
$this->locale = $this->playerInfo->getLocale();
|
||||
$this->randomClientId = $this->playerInfo->getClientId();
|
||||
|
||||
@ -706,13 +703,6 @@ class Player extends Human implements CommandSender, ChunkLoader, ChunkListener,
|
||||
return $this->username;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getLowerCaseName() : string{
|
||||
return $this->iusername;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the "friendly" name to display of this player to use in the chat.
|
||||
*
|
||||
|
Reference in New Issue
Block a user