mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-27 21:59:52 +00:00
Command: fix output translation regression caused by 4c51f1dda348d9d1c53c89185ceeb909a1cad21a
This commit is contained in:
parent
7ad44d8403
commit
e8bb6b8625
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user