mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 01:46:04 +00:00
Given Player->iusername a use, added Player->getLowerCaseName()
Micro optimizations by not repeatedly lowercasing names when searching
This commit is contained in:
@ -3571,6 +3571,13 @@ class Player extends Human implements CommandSender, InventoryHolder, ChunkLoade
|
||||
return $this->username;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getLowerCaseName() : string{
|
||||
return $this->iusername;
|
||||
}
|
||||
|
||||
public function kill(){
|
||||
if(!$this->spawned){
|
||||
return;
|
||||
|
Reference in New Issue
Block a user