Minecraft-Console-Client/MinecraftClient/ChatBots
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
..
Alerts.cs Update Alert.cs (#2496) 2023-05-06 21:55:21 +08:00
AntiAFK.cs Run MCC at true 20 TPS 2026-03-23 14:29:04 +01:00
AutoAttack.cs Run MCC at true 20 TPS 2026-03-23 14:29:04 +01:00
AutoCraft.cs Modernize data carriers to records and add primary constructors 2026-03-24 01:31:17 +00:00
AutoDig.cs Modernize lock object declarations from object to System.Threading.Lock 2026-03-24 00:15:21 +00:00
AutoDrop.cs Run MCC at true 20 TPS 2026-03-23 14:29:04 +01:00
AutoEat.cs Implement command completion suggestions. 2022-12-06 15:50:17 +08:00
AutoFishing.cs Modernize null-check patterns: use 'is null' and 'is not null' 2026-03-24 00:28:02 +00:00
AutoRelog.cs Run MCC at true 20 TPS 2026-03-23 14:29:04 +01:00
AutoRespond.cs Modernize null-check patterns: use 'is null' and 'is not null' 2026-03-24 00:28:02 +00:00
ChatLog.cs Modernize lock object declarations from object to System.Threading.Lock 2026-03-24 00:15:21 +00:00
DiscordBridge.cs Add chat formatting code propagation (bold, italic, underline, strikethrough, obfuscated) 2026-03-24 20:18:53 +00:00
DiscordRpc.cs Modernize lock object declarations from object to System.Threading.Lock 2026-03-24 00:15:21 +00:00
Farmer.cs AntiCheat fix prevent Block Breaking 2024-03-05 18:54:29 +05:00
FileInputBot.cs Run MCC at true 20 TPS 2026-03-23 14:29:04 +01:00
FollowPlayer.cs Modernize null-check patterns: use 'is null' and 'is not null' 2026-03-24 00:28:02 +00:00
HangmanGame.cs Implement command completion suggestions. 2022-12-06 15:50:17 +08:00
ItemsCollector.cs Added slab handling for 1.20/.1 2023-06-23 16:25:18 +02:00
Mailer.cs Modernize lock object declarations from object to System.Threading.Lock 2026-03-24 00:15:21 +00:00
Map.cs refactor: convert == null / != null to is null / is not null in 31 files 2026-03-24 00:42:59 +00:00
PlayerListLogger.cs Merge into master 2022-12-06 20:32:46 +08:00
RemoteControl.cs Implement command completion suggestions. 2022-12-06 15:50:17 +08:00
ReplayCapture.cs Run MCC at true 20 TPS 2026-03-23 14:29:04 +01:00
Script.cs refactor: convert == null / != null to is null / is not null in 31 files 2026-03-24 00:42:59 +00:00
ScriptScheduler.cs Run MCC at true 20 TPS 2026-03-23 14:29:04 +01:00
TelegramBridge.cs refactor: convert == null / != null to is null / is not null in 31 files 2026-03-24 00:42:59 +00:00
TestBot.cs Implement command completion suggestions. 2022-12-06 15:50:17 +08:00