Solved How to make a longer tablist name?

Discussion in 'Plugin Development' started by malandrix_bunny, Jun 15, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    malandrix_bunny

    Hey guys, I'm trying to make it so that a player's talist name can contain the first letter of their Vault prefix in brackets while keeping their full name. When trying to do this I am told that I am only able to set the tablist name to a maximum of 16 characters but going onto another server I was proved wrong.
    [​IMG]

    Here is an example of what I am talking about. Somehow they managed to give me the [Peasant] rank without shortening my name with a substring.
    Is this possible with the bukkit API?
    Do I have to use NMS?
    Or is this something even further?
     
  2. Offline

    xTigerRebornx

  3. Offline

    malandrix_bunny

    xTigerRebornx
    Short, simple, and not spoon-fed, thank you for the help!
     
  4. Offline

    malandrix_bunny

    Alright, I managed to get the prefix before the player's name but is there a way to replace my IGN with a custom name like Player.SetPlayerListName() while keeping the scoreboard prefix?
     
  5. Offline

    Konato_K

    No, setting the player list name will override scoreboards, and therefore, it will be limited to 16 characters, a workaround to this can be send packets to all players to remove the player from the list, and then send packets with the new name (and don't forget to add the new name of the player to the team so it gets the prefix, however, I will not really recommend this to you)
     
  6. Offline

    malandrix_bunny

    Konato_K thank you very much. I guess I will have to read up on the most efficient way to update packets then.
    Solved
     
Thread Status:
Not open for further replies.

Share This Page