Use commons' substring function to avoid IndexOutOfBoundsExceptions.

This commit is contained in:
StevenLawson 2014-08-12 15:32:56 -04:00
parent fc1c487dce
commit 891d8d178f

View file

@ -885,7 +885,7 @@ public class TFM_PlayerListener implements Listener
try
{
player.setPlayerListName(name.substring(0, 16));
player.setPlayerListName(StringUtils.substring(name, 0, 16));
}
catch (IllegalArgumentException ex)
{