New netbeans version.

Fix chat length truncation amount.
This commit is contained in:
Steven Lawson
2012-10-22 16:47:29 -04:00
parent 2a396ca904
commit 042fc3102e
4 changed files with 418 additions and 59 deletions

View File

@ -320,11 +320,11 @@ public class TFM_PlayerListener implements Listener
// strip color from messages
message = ChatColor.stripColor(message);
// truncate messages that are too long
if (message.length() > 95)
// truncate messages that are too long - 100 characters is vanilla client max
if (message.length() > 100)
{
message = message.substring(0, 95);
TFM_Util.playerMsg(p, "Message was shortened, because it was too long to send.");
message = message.substring(0, 100);
TFM_Util.playerMsg(p, "Message was shortened because it was too long to send.");
}
// check for caps