Minecraft-Console-Client/MinecraftClient
copilot-swe-agent[bot] 3fb7625b39 Add chat formatting code propagation (bold, italic, underline, strikethrough, obfuscated)
Re-implements PR #2851 against the current System.Text.Json.Nodes codebase.

Changes:
- ChatParser.cs: Add FormattingCodes dict, update JSONData2String to propagate
  formatting codes alongside colors, update NbtToString for the NBT chat path
  (used in MC 1.20.4+), fix root-string shortcut to preserve formatting prefix
- DiscordBridge.cs: Add GetDiscordText() converting § codes to Discord Markdown,
  handle unclosed formatting codes with end-of-string matching

End-to-end tested against Minecraft 1.21.11 (MC 26.1) offline server.
All 8 formatting types verified: bold(§l), italic(§o), strikethrough(§m),
underline(§n), combined, nested, reset-via-false, obfuscated(§k).

Co-authored-by: milutinke <441903+milutinke@users.noreply.github.com>
Agent-Logs-Url: https://github.com/MCCTeam/Minecraft-Console-Client/sessions/65b0d230-287c-4ed8-9b3c-a5ea25411804
2026-03-24 20:18:53 +00:00
..
ChatBots Add chat formatting code propagation (bold, italic, underline, strikethrough, obfuscated) 2026-03-24 20:18:53 +00:00
CommandHandler Modernize data carriers to records and add primary constructors 2026-03-24 01:31:17 +00:00
Commands refactor: convert == null / != null to is null / is not null in 31 files 2026-03-24 00:42:59 +00:00
config Fix command registration for external MCC scripts 2026-03-24 17:43:14 +00:00
Crypto refactor: convert == null / != null to is null / is not null in 31 files 2026-03-24 00:42:59 +00:00
Inventory Modernize data carriers to records and add primary constructors 2026-03-24 01:31:17 +00:00
Logger refactor: convert == null / != null to is null / is not null in 31 files 2026-03-24 00:42:59 +00:00
Mapping Modernize data carriers to records and add primary constructors 2026-03-24 01:31:17 +00:00
Physics refactor: convert == null / != null to is null / is not null in 31 files 2026-03-24 00:42:59 +00:00
Properties Fix all warnings & Trim (#2226) 2022-10-02 18:31:08 +08:00
Protocol Add chat formatting code propagation (bold, italic, underline, strikethrough, obfuscated) 2026-03-24 20:18:53 +00:00
Proxy Tooltip support & Bug fix 2022-12-11 13:00:19 +08:00
Resources Add configurable MaxChatMessageLength to override default limits for older versions 2026-03-24 18:50:01 +00:00
Scripting Improve UnregisterChatBotCommands doc comment per review feedback 2026-03-24 18:15:01 +00:00
WinAPI Bug fix 2022-10-10 10:56:12 +08:00
AutoTimeout.cs Fix all warnings & Trim (#2226) 2022-10-02 18:31:08 +08:00
ColorHelper.cs Modernize data carriers to records and add primary constructors 2026-03-24 01:31:17 +00:00
Command.cs Bug fix 2022-12-11 16:30:45 +08:00
ConsoleIO.cs Modernize null-check patterns: use 'is null' and 'is not null' 2026-03-24 00:28:02 +00:00
ExtensionMethods.cs Better translation 2022-10-17 20:00:33 +08:00
FileMonitor.cs refactor: convert == null / != null to is null / is not null in 31 files 2026-03-24 00:42:59 +00:00
INIFile.cs [skip ci] Normalize all line endings 2023-09-15 14:44:11 +08:00
Json.cs Fix ParseJson crash on non-JSON plain-text input (e.g. vanilla MOTD) 2026-03-22 19:53:15 +01:00
McClient.cs Fix command registration for external MCC scripts 2026-03-24 17:43:14 +00:00
MinecraftClient.csproj Run MCC at true 20 TPS 2026-03-23 14:29:04 +01:00
Program.cs Merge remote-tracking branch 'origin/master' into copilot/modernize-code-to-csharp-14 2026-03-24 08:52:57 +00:00
Settings.cs Add configurable MaxChatMessageLength to override default limits for older versions 2026-03-24 18:50:01 +00:00
TaskWithDelay.cs Fix all warnings & Trim (#2226) 2022-10-02 18:31:08 +08:00
TaskWithResult.cs Modernize null-check patterns: use 'is null' and 'is not null' 2026-03-24 00:28:02 +00:00
UpgradeHelper.cs Modernize null-check patterns: use 'is null' and 'is not null' 2026-03-24 00:28:02 +00:00