src/Model/Player.php
public function color()
    {
        if (is_null($this->rec)) {
            return null;
        }
        $resourcePack = $this->rec->getResourcePack();
        return $resourcePack->getPlayerColor($this->colorId);
    }
public function color()
    {
        if (is_null($this->rec)) {
            return null;
        }
        $resourcePack = $this->rec->getResourcePack();
        return $resourcePack->getPlayerColor($this->colorId);
    }
public function color ( ) { if ( is_null ( $ this -> rec ) ) { return null ; } $ resourcePack = $ this -> rec -> getResourcePack ( ) ; return $ resourcePack -> getPlayerColor ( $ this -> colorId ) ; }
Get the hex color of this player.

@return string Hexadecimal representation of this player's color.
Get the hex color of this player .