Add configurable MaxChatMessageLength to override default limits for older versions

Adds a MaxChatMessageLength config option under [Main.Advanced] that allows
users to override the protocol-defined maximum chat message length. Default is
0 (auto: 100 for MC 1.10 and below, 256 for MC 1.11+). Some servers like
Hypixel support longer messages on older versions, so this lets users set a
custom limit (e.g. 256 on 1.8.9). Includes a warning about potential kicks
if set incorrectly.

Closes #2947

Co-authored-by: milutinke <441903+milutinke@users.noreply.github.com>
Agent-Logs-Url: https://github.com/MCCTeam/Minecraft-Console-Client/sessions/39c78e6a-f748-4f41-a905-2f5d27f99eff
This commit is contained in:
copilot-swe-agent[bot] 2026-03-24 18:50:01 +00:00
parent f15c000868
commit db5faa22b1
5 changed files with 32 additions and 4 deletions

View file

@ -1703,6 +1703,15 @@ namespace MinecraftClient {
}
}
/// <summary>
/// Looks up a localized string similar to Override the maximum chat message length. Set to 0 to use the default (100 for 1.10 and below, 256 for 1.11+). WARNING: Setting this incorrectly may cause you to be kicked from the server..
/// </summary>
internal static string Main_Advanced_max_chat_message_length {
get {
return ResourceManager.GetString("Main.Advanced.max_chat_message_length", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Enable support for joining Minecraft Realms worlds..
/// </summary>

View file

@ -655,6 +655,9 @@ Usage examples: "/tell &lt;mybot&gt; reco Player2", "/connect &lt;serverip&gt; P
<data name="Main.Advanced.message_cooldown" xml:space="preserve">
<value>Controls the minimum interval (in seconds) between sending each message to the server.</value>
</data>
<data name="Main.Advanced.max_chat_message_length" xml:space="preserve">
<value>Override the maximum chat message length. Set to 0 to use the default (100 for 1.10 and below, 256 for 1.11+). WARNING: Setting this incorrectly may cause you to be kicked from the server.</value>
</data>
<data name="Main.Advanced.minecraft_realms" xml:space="preserve">
<value>Enable support for joining Minecraft Realms worlds.</value>
</data>