mirror of
https://github.com/TotalFreedomMC/TotalFreedomMod.git
synced 2025-08-03 11:06:08 +00:00
* Updated the comment as I forgot that * Corrected the max limited based on updated issue from 250 to 256
This commit is contained in:
parent
5d7aa8913b
commit
30a6b7a442
1 changed files with 3 additions and 3 deletions
|
@ -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.");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue