I cant rename player's name in tab (I mean when I reaname if player has a name greater then 14 it get a stack strece saying that the name cannot be greater than 16 even mineplex did and then name has a lenth of 15 for example). How they did that
You know the scoreboards? They have a team API, where a team can have a color, a prefix and a suffix. This is also the way that Hypixel does to put the rank before the nametag above the playertag and the guild's tag after the name. Read a little bit more about Team/Scoreboards on bukkit here.
LCastr0 Dud I've trie, tried, and tried again but I realy cant do that that a look at my result code and plz tell me what is wrong Code:java Player pl = e.getPlayer(); ScoreboardManager manager = Bukkit.getScoreboardManager(); Scoreboard board = manager.getNewScoreboard(); Team admin = board.registerNewTeam("admin"); admin.setPrefix("ADMIN "); admin.setDisplayName("ADMIN - dessa" + pl.getName()); admin.setCanSeeFriendlyInvisibles(true); admin.setAllowFriendlyFire(false); admin.addPlayer(pl);
You don't need to set the display name, just the team prefix. Then, after setting the team prefix, add the player, without changing his display name