mirror of
https://github.com/TheDeus-Group/TFM-4.3-Reloaded.git
synced 2024-12-23 07:54:58 +00:00
Use commons' substring function to avoid IndexOutOfBoundsExceptions.
This commit is contained in:
parent
fc1c487dce
commit
891d8d178f
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue