From 30a6b7a44238cde2b77ca6da53502e511299772e Mon Sep 17 00:00:00 2001 From: Ryan Date: Fri, 30 Jun 2017 08:41:01 +0100 Subject: [PATCH] Increased text limit. Resolves #1941 (#2039) * Updated the comment as I forgot that * Corrected the max limited based on updated issue from 250 to 256 --- .../java/me/totalfreedom/totalfreedommod/ChatManager.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/me/totalfreedom/totalfreedommod/ChatManager.java b/src/main/java/me/totalfreedom/totalfreedommod/ChatManager.java index 5795d20..deeace9 100644 --- a/src/main/java/me/totalfreedom/totalfreedommod/ChatManager.java +++ b/src/main/java/me/totalfreedom/totalfreedommod/ChatManager.java @@ -51,10 +51,10 @@ public class ChatManager extends FreedomService // Strip color from messages message = ChatColor.stripColor(message); - // Truncate messages that are too long - 100 characters is vanilla client max - if (message.length() > 100) + // Truncate messages that are too long - 256 characters is vanilla client max + if (message.length() > 256) { - message = message.substring(0, 100); + message = message.substring(0, 256); FSync.playerMsg(player, "Message was shortened because it was too long to send."); }