pocketmine\Player::getClientId PHP 메소드

getClientId() 공개 메소드

Please use getUniqueId() instead (IP + clientId + name combo, in the future it'll change to real UUID for online auth)
public getClientId ( )
    public function getClientId()
    {
        return $this->randomClientId;
    }

Usage Example

 private function private_onLogin(Player $player)
 {
     /** @var string|LoginDataQuery $LoginQuery */
     $LoginQuery = $this->main->getLoginQueryImpl();
     /** @noinspection PhpDeprecationInspection */
     new $LoginQuery($this->main, $player->getId(), $player->getName(), $player->getAddress(), $player->getClientId());
 }
Player