Use Chat::formatMessage in Server/*

This commit is contained in:
Alexander Nell
2020-06-02 17:30:30 +02:00
parent 5717589588
commit 9abadac932
5 changed files with 159 additions and 77 deletions

View File

@ -440,7 +440,7 @@ class ServerUIPropertiesMenu implements ConfiguratorMenu, CallbackListener, Time
// Notifications
$uiPropertiesCount = count($newUIProperties);
$uiPropertyIndex = 0;
$title = $this->maniaControl->getAuthenticationManager()->getAuthLevelName($player);
$title = $player->getAuthLevelName();
$chatMessage = '$ff0' . $title . ' ' . $player->getEscapedNickname() . ' set ServerUIPropert' . ($uiPropertiesCount > 1 ? 'ies' : 'y') . ' ';
foreach ($newUIProperties as $uiPropertyName => $uiPropertyValue) {
$chatMessage .= '$<$fff' . $uiPropertyName . '$>$ff0 ';