You know when you see a players name in the game. . .

  • In the game, above an avatars head is the players name. Is there a method available to edit this text (I would like to add a "rank" there too)?


    I've had a look and I can't see anything in the API? I may be going blind though! 8)

    you could use 3d text and update the location as the player moves, but i myself don't even like any text above players oO i think a better way would be to have the players info displayed in a info box off to the the side of the screen and only display when you point the crosshair at the player

    Yahgiggle Steam Signature, real name Deon Hamilton :thumbsup: Server @ ip 139.99.136.76:4255 Name (The Federation of territory) Unity :thumbsup:

    If at first your code does not work call it version 0.1 with the odd bug :thinking:

    My Own Website




    31245-logo-png
  • you could add a permission group for each rank and then switch them whenever you need to, they could all have the same exact permission but a different name thus rendering them purely visual and reflecting what you want instead of actually being different permission groups.


    Use the player.setPermissionGroup() method to change them where something that you are monitoring through your plugin happens. (If I remember correctly you are monitoring survival time on your server right?)


    Then you can use these permissions to set up your name tags:

    shownametagDetermines if the nametag of this player should be visibletrue
    nametagcolorColor of the player's nametag[#FFFFFF]
    nametagprefixPrefix for the player's nametag
    nametagsuffixSuffix for the player's nametag
    nametagprefixcolorColor for the nametag prefix[#FFFFFF]
    nametagsuffixcolorColor for the nametag suffix[#FFFFFF]

Participate now!

Don’t have an account yet? Create a new account now and be part of our community!