From e8bb6b86250c0e5331955e19728fdc177e6ffa36 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Mon, 10 Feb 2020 11:42:21 +0000 Subject: [PATCH] Command: fix output translation regression caused by 4c51f1dda348d9d1c53c89185ceeb909a1cad21a --- src/command/Command.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/command/Command.php b/src/command/Command.php index 68cefe0a1..408fdd9db 100644 --- a/src/command/Command.php +++ b/src/command/Command.php @@ -228,7 +228,7 @@ abstract class Command{ public static function broadcastCommandMessage(CommandSender $source, $message, bool $sendToSource = true) : void{ $users = PermissionManager::getInstance()->getPermissionSubscriptions(Server::BROADCAST_CHANNEL_ADMINISTRATIVE); if($message instanceof TranslationContainer){ - $formatted = "[" . $source->getName() . ": %" . $message->getText() . "]"; + $formatted = "[" . $source->getName() . ": " . ($source->getServer()->getLanguage()->get($message->getText()) !== $message->getText() ? "%" : "") . $message->getText() . "]"; $result = new TranslationContainer($formatted, $message->getParameters()); $colored = new TranslationContainer(TextFormat::GRAY . TextFormat::ITALIC . $formatted, $message->getParameters());