[Spigot 1.21.11] Player tablist names are still limited to 16 characters – need help

U

/u/SDM_777

Guest
Hello everyone, I'm new to server administration and this is my first time posting here, so please bear with me. I'm running a Spigot 1.21.11 server and I wrote my own custom clan plugin (SimpleClans). The plugin sets prefixes and suffixes using `scoreboard teams` (`team.setPrefix()`, `team.setSuffix()`). The goal is to display a clan tag before the player's name in the tablist (e.g., `[MyClan]PlayerName`). The problem is that the displayed name in the tablist is still being cut off at 16 characters. The full string is longer than that, but the client shows only the first 16 characters. Here's what I've already tried: 1. Using `player.setDisplayName()` – works only for chat, not for tablist. 2. Using `team.setPrefix()` and `team.setSuffix()` – the prefix is visible, but the combined length (prefix + name + suffix) is limited to 16 characters. 3. I also tested `player.setPlayerListName()` – but that also limits the name to 16 characters. 4. I installed several plugins that are supposed to remove the 16-character limit, including: - TAB Reborn (even the 4.1.9 version with `unlimited-nametag-prefix-suffix-mode`) - NametagEditX - EligiusNametag - McUltimateTags Unfortunately, none of them worked on my Spigot server (some were Paper-only, others just didn't apply the changes). 5. I also tried integrating the prefixes through Vault, LuckPerms, and PlaceholderAPI. I installed and configured all the necessary plugins, but the issue persisted. I found the old bug report SPIGOT-1487, which suggests that `setPlayerListName` should accept more than 16 characters. However, in my testing, it still cuts off the string. I would prefer to stay on Spigot if possible, because Paper breaks some mechanics on my server (specifically, stasis chambers with ender pearls). But if there is absolutely no way to fix this on Spigot, I will consider switching to Paper. I've uploaded my server configs (`spigot.yml`, `bukkit.yml`) and the main classes from my plugin (`Clan.java`, `ClanManager.java`) to mclo.gs: https://mclo.gs/AGEIVWp I'm open to any solution – even if it's complex. If someone knows how to properly set long names in the tablist on Spigot 1.21.11 using the server API, or if there is a way to override the limit with ProtocolLib or any other server-side approach, please share your experience. Thank you for your time and help.
submitted by /u/SDM_777
[link] [comments]

Continue reading...
 
Back
Top