Changing PlayerTag without skin being changed

Discussion in 'Plugin Development' started by OppositeGamer, Dec 31, 2012.

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

    OppositeGamer

    Does anyone know how to change the tag above a players head without changing their skin? I've seen it done, and need some help. Please help me thanks!
     
  2. Offline

    tommycake50

    its actually impossible because the skin is client side and so is the rendering of the name so when it renders the name it also renders the skin because to change the name you have to send a packet to the client saying a named entity has spawned and that named entity is a pre-existing player when the client recieves that packet it knows that players name so it can get the skin when it needs to render that specific player.
     
    MrBluebear3 and gomeow like this.
  3. Offline

    OppositeGamer

    Well the server NewLiberty has done this. And so has the mcpvp. So there is a way, do you know any examples of code I could go off of?
     
  4. Offline

    ZeusAllMighty11

    When I use tagapi, nothing changes but the tag...

    :)
     
  5. Offline

    tommycake50

    rlly? i kinda fail to see how that is possible?
    unless the client never updated the skin.
    cos afaik tagAPI uses namedentityspawn packets.
     
  6. Offline

    OppositeGamer

    I used tagAPI it changed the skin instead and the name. Is there special method in TagAPI to prevent skin changing?
     
  7. Offline

    tommycake50

    nope skin is client side 100% sure.
     
  8. Offline

    OppositeGamer

    Go in to the NewLiberty server, I promise this can be done. It's just hard.
     
  9. Offline

    Hoolean

    Feed me screenshots...
     
  10. Offline

    OppositeGamer

    See look here Im in the NewLiberty Server and it is being done.

    [​IMG]
     
  11. Offline

    tommycake50

    no you cant srsly look at the mc source code you will see that im right.

    cos only the color is changed not the name?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 30, 2016
  12. Offline

    OppositeGamer

    Heres some more pictures[​IMG][​IMG]

    [​IMG]

    I know I've made Minecraft mods,
    I know, I've programmed minecraft mods, I've seen that line of code you put in before, but it can be done server side. And Im trying to figure it out. Im sure its packeting but I suck at packeting

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 30, 2016
    ZeusAllMighty11 likes this.
  13. Offline

    tommycake50

    still thats just color color change doesnt affect skin.
    only name changing.
     
  14. Offline

    Hoolean

    OppositeGamer

    It is easy to change the player tag and keep the skin if you're only changing the colour :)

    It's just if you change the actual name it gets complicated :p

    Check out Tag API :D
     
  15. Offline

    tommycake50

    im sure it cant be done i would post mc source but unfortunately that would be illegal.
     
  16. Offline

    OppositeGamer

    Hey MrBluebear3 how do I do it with just changing the players color above their head and keep the skin? I've used TagAPI this is what I have

    Code:
        @EventHandler
        public void onNameTag(PlayerReceiveNameTagEvent event) {
        if (event.getNamedPlayer().getName().equals("milkymilkway")) {
        event.setTag(ChatColor.RED + "milkymilkway");
        }
        }
    But it changes my skin to steve, how do I keep it from changing the skin?
     
  17. Offline

    Hoolean

    That's weird, it shouldn't do :(

    It worked fine for me...

    You're not using an older Minecraft version are you?
     
  18. Offline

    tommycake50

    that shouldnt be happening.
    maybe the clients are getting the skin as.
    \ua007cmilkymilkway
     
  19. Offline

    OppositeGamer

    Nope Im using 1.4.6, and my friend says I look like steve. :(
     
  20. Offline

    tommycake50

    u sure your friend not be trollin?
     
    KeybordPiano459 likes this.
  21. Offline

    Hoolean

    Try it with him :/

    You never know, it might work :)
     
  22. Offline

    OppositeGamer

    Works now

    I had to do ChatColor.RED

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 30, 2016
  23. Offline

    Hoolean

    That's what you did in the above code? :p
     
  24. Offline

    chasechocolate

    I always use ChatColor.RED + event.getNamedPlayer().getName() just so I don't accidentally mistype the name :p
     
Thread Status:
Not open for further replies.

Share This Page