public static function setString(Player $player, string $message = ""){ $packet = new SetEntityDataPacket(); $packet->metadata[Entity::dATA_NAMETAG] = array(Entity::dATA_TYPE_STRING, $message); $packet->eid = BossManager::NETWORK_EID; $player->dataPacket($packet); unset($packet); $packet = new BossEventPacket(); $packet->bossEid = BossManager::NETWORK_EID; $packet->eventType = BossEventPacket::TYPE_SHOW; $packet->playerEid = 0; $packet->healthPercent = 1; $packet->title = $message; $packet->unknownShort = 0; $packet->color = 0; $packet->overlay = 1; $player->dataPacket($packet); } BossManager::setString($player, $this->timer); Is not working. Im making bossbar timer