1. Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Packet Nametags

Discussion in 'Skript' started by Kvark, Dec 31, 2017.

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

    Kvark New Member

    Joined:
    Dec 28, 2017
    Messages:
    8
    Likes Received:
    0
    Hello SkUnity,
    this is my first post and I appreciate any feedback if I did something wrong.

    First of all, i wonder if there is way how to edit nametag of player for other players.
    I am making team-based minigame and I want the nametags to be coloured red, if player is enemy and green, if player is teammate.
    From what i learned, i think that this is possible with MundoSK addon and its packets feature, but i am not sure.
    Correct me if I am wrong, if not how can I do that?

    Thanks,
    Kvark
     
  2. Uzumaki

    Uzumaki Well-Known Member

    Joined:
    Feb 20, 2017
    Messages:
    306
    Likes Received:
    10
  3. LimeGlass

    VIP Supporter Addon Developer

    Joined:
    Jan 24, 2017
    Messages:
    621
    Likes Received:
    436
    Medals:
    You can use NametagEdit and any addon that supports NametagEdit (Skellett, Umbaska, others) (Tag me if you would like a link to the latest NametagEdit)

    Doing packet work for these "client side" nametags requires a lot of fiddling with scoreboards in NMS coding, NametagEdit does this for us with a good and well maintained API.
     
    • Informative Informative x 2
  4. Kvark

    Kvark New Member

    Joined:
    Dec 28, 2017
    Messages:
    8
    Likes Received:
    0
    Can you please send me the syntax? I can't find it anywhere, I use Skellett.
     
  5. Donut

    Donut Well-Known Member

    Joined:
    Mar 27, 2017
    Messages:
    1,340
    Likes Received:
    176
    Medals:
    • Like Like x 1
  6. Kvark

    Kvark New Member

    Joined:
    Dec 28, 2017
    Messages:
    8
    Likes Received:
    0
    Thank you very much :emoji_wink:
    --- Double Post Merged, Jan 3, 2018, Original Post Date: Jan 3, 2018 ---
    Well, i tried that but it seems to not work. I am running CraftBukkit 1.8.8 and Skellett nametags doesn't work for me. Skellett disables a lot of other things too. About Umbaska, I can't find any compatible version for my Server/Skript. I found effect in WildSkript that allows players to see individual tags, however it doesn't work after i edit nametag normally. Help?
     
  7. BrettPlayMC

    Supporter

    Joined:
    Jan 26, 2017
    Messages:
    715
    Likes Received:
    53
    Upgrade to 1.9 then you will get support for Bensku’s fork. Also, it’s disabling stuff because you’re using craftbukkit (I think). Use Spigot
     
  8. Kvark

    Kvark New Member

    Joined:
    Dec 28, 2017
    Messages:
    8
    Likes Received:
    0
    Thanks, i forgot about that bensku's fork support. But i can't upgrade to 1.9 right now. Also I think i use Spigot, just it says CraftBukkit with implemented API.
     
  9. Donut

    Donut Well-Known Member

    Joined:
    Mar 27, 2017
    Messages:
    1,340
    Likes Received:
    176
    Medals:
    well do you have a spigot.jar or a craftbutkkit.jar
     
  10. Kvark

    Kvark New Member

    Joined:
    Dec 28, 2017
    Messages:
    8
    Likes Received:
    0
    spigot.jar
     
  11. Pikachu

    Moderator Supporter Addon Developer

    Joined:
    Jan 25, 2017
    Messages:
    871
    Likes Received:
    139
    Medals:
    This is possible on 1.8 just not easy
     
  12. Kvark

    Kvark New Member

    Joined:
    Dec 28, 2017
    Messages:
    8
    Likes Received:
    0
    Can you send me optimal version of Skellett for 1.8.8, please? I am using the newest version, but i think Nametags are only for 1.11+ IMG_20180104_102144.JPG :/
    --- Double Post Merged, Jan 4, 2018, Original Post Date: Jan 4, 2018 ---
    Things don't have to be easy. If there is any solution i accept it.
     
  13. LimeGlass

    VIP Supporter Addon Developer

    Joined:
    Jan 24, 2017
    Messages:
    621
    Likes Received:
    436
    Medals:
    Any Skellett version will work on any Spigot version. In the older Skellett versions I made a custom nametag system but it only worked for everyone and you couldn't have client side nametags. I removed that and make the nametag syntax for NametagEdit. Use the syntax as posted above and make sure NametagEdit runs on your version, you may need a 1.8 version of NametagEdit to work. Post any errors that you have from either the addons or NametagEdit for us to solve if you come across any.
     
  14. BrettPlayMC

    Supporter

    Joined:
    Jan 26, 2017
    Messages:
    715
    Likes Received:
    53
    All NameTagEdit versions work on 1.8. :emoji_stuck_out_tongue:
    I used to use it and it worked fine,
     
  15. Kvark

    Kvark New Member

    Joined:
    Dec 28, 2017
    Messages:
    8
    Likes Received:
    0
    Aha, nametag syntax didn't work because Skellett wasn't hooked into NametagEdit. :-D
    As @BrettPlayMC said, NametagEdit works fine.

    skelltett_config.png
    ^ I set it to true and it works now. BUT it shows edited nametags to all players. I don't know how make this individuall, there isn't any input that determine which client is supposed to see edited nametag.
    prefix.png
    --- Double Post Merged, Jan 4, 2018, Original Post Date: Jan 4, 2018 ---
    *{pre} represents a player
     
    #15 Kvark, Jan 4, 2018
    Last edited: Jan 5, 2018
  16. Pikachu

    Moderator Supporter Addon Developer

    Joined:
    Jan 25, 2017
    Messages:
    871
    Likes Received:
    139
    Medals:
    Check the syntax, maybe there's an optional part for it. With packets you'd have to send a destroy entity packet and spawn player packet (with the new name) to the players you want to see it
     
  17. Kvark

    Kvark New Member

    Joined:
    Dec 28, 2017
    Messages:
    8
    Likes Received:
    0
    If I understand this right, i have to delete entity for a player, then spawn it again with all data such as position, inventory etc?
     
  18. Pikachu

    Moderator Supporter Addon Developer

    Joined:
    Jan 25, 2017
    Messages:
    871
    Likes Received:
    139
    Medals:
    no you just need to delete then spawn the entity, and probably it's armor
     
Thread Status:
Not open for further replies.

Share This Page

Loading...