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
This commit is contained in:
Ryan 2017-06-30 08:41:01 +01:00 committed by Jerom van der Sar
parent 5d7aa8913b
commit 30a6b7a442

View File

@ -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.");
}