mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 18:32:55 +00:00
Player: get rid of CID requirement from player info, CID is still available via extradata if supported by client impl
this is useless for PM and it doesn't have any fit purpose for plugin use either, so it doesn't make sense to expose it to the API.
This commit is contained in:
@ -162,8 +162,6 @@ class Player extends Human implements CommandSender, ChunkLoader, ChunkListener,
|
||||
protected $username;
|
||||
/** @var string */
|
||||
protected $displayName;
|
||||
/** @var int */
|
||||
protected $randomClientId;
|
||||
/** @var string */
|
||||
protected $xuid = "";
|
||||
/** @var bool */
|
||||
@ -270,7 +268,6 @@ class Player extends Human implements CommandSender, ChunkLoader, ChunkListener,
|
||||
$this->username = $username;
|
||||
$this->displayName = $this->username;
|
||||
$this->locale = $this->playerInfo->getLocale();
|
||||
$this->randomClientId = $this->playerInfo->getClientId();
|
||||
|
||||
$this->uuid = $this->playerInfo->getUuid();
|
||||
$this->xuid = $this->playerInfo->getXuid();
|
||||
@ -384,16 +381,6 @@ class Player extends Human implements CommandSender, ChunkLoader, ChunkListener,
|
||||
return "";
|
||||
}
|
||||
|
||||
/**
|
||||
* This might disappear in the future. Please use getUniqueId() instead.
|
||||
* @deprecated
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function getClientId(){
|
||||
return $this->randomClientId;
|
||||
}
|
||||
|
||||
public function isBanned() : bool{
|
||||
return $this->server->getNameBans()->isBanned($this->username);
|
||||
}
|
||||
|
Reference in New Issue
Block a user