mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2026-08-15 13:04:36 +00:00
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 |
||
|---|---|---|
| .. | ||
| Alerts.cs | ||
| AntiAFK.cs | ||
| AutoAttack.cs | ||
| AutoCraft.cs | ||
| AutoDig.cs | ||
| AutoDrop.cs | ||
| AutoEat.cs | ||
| AutoFishing.cs | ||
| AutoRelog.cs | ||
| AutoRespond.cs | ||
| ChatLog.cs | ||
| DiscordBridge.cs | ||
| DiscordRpc.cs | ||
| Farmer.cs | ||
| FileInputBot.cs | ||
| FollowPlayer.cs | ||
| HangmanGame.cs | ||
| ItemsCollector.cs | ||
| Mailer.cs | ||
| Map.cs | ||
| PlayerListLogger.cs | ||
| RemoteControl.cs | ||
| ReplayCapture.cs | ||
| Script.cs | ||
| ScriptScheduler.cs | ||
| TelegramBridge.cs | ||
| TestBot.cs | ||