diff --git a/src/pocketmine/entity/Entity.php b/src/pocketmine/entity/Entity.php index 858bbc5391..0835c8fe7e 100644 --- a/src/pocketmine/entity/Entity.php +++ b/src/pocketmine/entity/Entity.php @@ -609,6 +609,20 @@ abstract class Entity extends Location implements Metadatable, EntityIds{ $this->propertyManager->setByte(self::DATA_ALWAYS_SHOW_NAMETAG, $value ? 1 : 0); } + /** + * @return string|null + */ + public function getScoreTag() : ?string{ + return $this->propertyManager->getString(self::DATA_SCORE_TAG); + } + + /** + * @param string $score + */ + public function setScoreTag(string $score) : void{ + $this->propertyManager->setString(self::DATA_SCORE_TAG, $score); + } + /** * @return float */