enclose value to prevent coloring by the map name

This commit is contained in:
Beu
2025-07-25 09:02:43 +02:00
parent 291a3ecc05
commit 9ee0668509

View File

@@ -469,7 +469,7 @@ class DirectoryBrowser implements ManialinkPageAnswerListener {
$message = ''; $message = '';
$infos = $this->maniaControl->getClient()->getMapInfo($relativeFilePath); $infos = $this->maniaControl->getClient()->getMapInfo($relativeFilePath);
foreach ($infos as $key => $value) { foreach ($infos as $key => $value) {
$message .= '$<$0c0' . $key .':$> '. $value . PHP_EOL; $message .= '$<$0c0' . $key .':$> $<'. $value .'$>'. PHP_EOL;
} }
$this->maniaControl->getChat()->sendChat($message, $player->login, false); $this->maniaControl->getChat()->sendChat($message, $player->login, false);
} catch (\Throwable $th) { } catch (\Throwable $th) {