From 858088281717ef39530450495c9932c5f6231379 Mon Sep 17 00:00:00 2001 From: NanaChiyo0721 Date: Sat, 15 Aug 2026 00:29:07 +0800 Subject: [PATCH] Fix wrong clamped reading size & add more comments to default value of LongCommandSupportConfig --- .../config/modules/fixes/LongCommandSupportConfig.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shiroha-server/src/main/java/io/nanachiyo0721/shiroha/config/modules/fixes/LongCommandSupportConfig.java b/shiroha-server/src/main/java/io/nanachiyo0721/shiroha/config/modules/fixes/LongCommandSupportConfig.java index 566ef88..d692f77 100644 --- a/shiroha-server/src/main/java/io/nanachiyo0721/shiroha/config/modules/fixes/LongCommandSupportConfig.java +++ b/shiroha-server/src/main/java/io/nanachiyo0721/shiroha/config/modules/fixes/LongCommandSupportConfig.java @@ -14,7 +14,7 @@ public class LongCommandSupportConfig { @ConfigInfo(name = "maximum_command_string_length", comments = """ Determines the final limitation of the command length, paper limits this to 256 chars but here we need to expand - it as we have to use it for command gui + it (256 -> 32768) as we have to use it for command gui """) - public static int maximumCommandLength = 32768; + public static int maximumCommandLength = 32767; }