1
0

Use Chat::formatMessage in Server/*

Este cometimento está contido em:
Alexander Nell
2020-06-02 17:30:30 +02:00
ascendente 5717589588
cometimento 9abadac932
5 ficheiros modificados com 159 adições e 77 eliminações

Ver ficheiro

@@ -172,6 +172,10 @@ class VoteRatiosMenu implements CallbackListener, ConfiguratorMenu, TimerListene
* @param string $commandName
*/
private function sendInvalidValueError(Player $player, $commandName) {
$this->maniaControl->getChat()->sendError("Invalid Value given for '{$commandName}'!", $player);
$message = $this->maniaControl->getChat()->formatMessage(
'Invalid Value given for %s!',
$commandName
);
$this->maniaControl->getChat()->sendError($message, $player);
}
}