mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Fix sign command
This commit is contained in:
parent
a7e69fd9fd
commit
01802dfcff
3 changed files with 587 additions and 61 deletions
|
|
@ -47,11 +47,20 @@ namespace MinecraftClient.Protocol
|
|||
/// <returns>Returns the translated text</returns>
|
||||
public static string ParseSignedChat(ChatMessage message, List<string>? links = null)
|
||||
{
|
||||
string chatContent = (Config.Signature.ShowModifiedChat && message.unsignedContent != null) ? message.unsignedContent : message.content;
|
||||
string content = ParseText(chatContent, links);
|
||||
if (string.IsNullOrEmpty(content))
|
||||
content = chatContent;
|
||||
string sender = message.displayName!;
|
||||
string content;
|
||||
if (Config.Signature.ShowModifiedChat && message.unsignedContent != null)
|
||||
{
|
||||
content = ParseText(message.unsignedContent!);
|
||||
if (string.IsNullOrEmpty(content))
|
||||
content = message.unsignedContent!;
|
||||
}
|
||||
else
|
||||
{
|
||||
content = message.isJson ? ParseText(message.content) : message.content;
|
||||
if (string.IsNullOrEmpty(content))
|
||||
content = message.content!;
|
||||
}
|
||||
|
||||
string text;
|
||||
List<string> usingData = new();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue