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 |
||
|---|---|---|
| .. | ||
| Handlers | ||
| Message | ||
| ProfileKey | ||
| Session | ||
| DataTypeGenerator.cs | ||
| EntityActionType.cs | ||
| GuidExtensions.cs | ||
| IMinecraftCom.cs | ||
| IMinecraftComHandler.cs | ||
| JwtPayloadDecode.cs | ||
| MicrosoftAuthentication.cs | ||
| MojangAPI.cs | ||
| PlayerInfo.cs | ||
| ProtocolHandler.cs | ||
| ProxiedWebRequest.cs | ||
| ReplayHandler.cs | ||