The Meaning of Life, the Universe, and Everything.
Join Date:
9/1/2015
Posts:
56
Member Details
[p]Hey everyone , I am Ripstikerpro A server owner and I came to the problem that the tab list doesn't show the player's full name when it contains prefix and colours , I know this is because the limit is 16 chars and The prefix & the colour codes make it not fit...[/p]
[p]So i stumbled across this on the bukkit forums : [i]Use this with an api- [/i][/p]
[*]
[i] if (player.getName().length() >= 14) {[/i]
[*]
[i] if (player.getName().length() >= 14) {[/i]
[*]
[i] player.setPlayerListName(player.getName().substring(0, 14));[/i]
[*]
[left][i] }[/i][/left]
[/numlist]
[p][color=#ff0000]Something to mention is that i use the tab plugin..[/color][/p]
[p][color=#000000][color=#ff0000]Thanks![/color][/color][/p]
List tags are malformed.