Different Name above Your Head

Discussion in 'Plugin Development' started by nicholasntp, Apr 7, 2012.

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

    nicholasntp

    I know this involves packets, and dont tell me it is impossible, because Ive seen it before, for example on d.mcctf.com

    On that server, it gives you a colored name above your head. Anyone know exactly how to do it?
     
  2. Offline

    thehutch

    You could just use Spout :D , that's what it is there for :p
     
  3. Offline

    Giant

    player.setDisplayName() should do that?
     
  4. Offline

    nicholasntp

    I dont want to have my users use spoutcraft. Good idea though.

    That only changes your name in chat. :(
     
  5. Offline

    thehutch

    Then you're going to need to make your own client then I think, I do not believe there is a Packet which deals with titles, I think it is all client based
     
  6. Offline

    nicholasntp

    Like i said before.....
     
  7. Offline

    B3NW

    AFAIK, you need to override whatever bukkit does with player entity placement, control it yourself and for the player entity name, set it was the username of the player, except with the colour code in front. AFAIK, the client parses out the colour code and just uses the username when fetching the skin.
     
  8. Offline

    AmberK

    Personally, I found this possible by modifying the EntityHuman class in
    main -> java -> net -> minecraft -> server -> EntityHuman.class

    Around line 1207 or so.
     
  9. Offline

    nicholasntp

    Yeah, figured it would be complicated like that. Sigh. I just wish some things were easier.
    Uhh, not understanding... You modified it? And used with bukkit?
     
  10. Offline

    jamietech

  11. Offline

    chaseoes

    It's possible to some extent without modifying Bukkit itself because plugins such as MobDisguise manage to do it, correct?

    Edit: Just found the last post in this thread: http://forums.bukkit.org/threads/changing-names.65443/
    But from what I read, it's only possibly by compiling with Craftbukkit and not Bukkit?

    Edit 2: Indeed it looks possible:
    http://forums.bukkit.org/threads/changing-name-above-character.24589/

    Still not sure about the Craftbukkit vs. Bukkit thing though - sure it'll work, but I would hate to compile with Craftbukkit if you're planning on releasing the plugin.
     
    nicholasntp likes this.
  12. Offline

    nicholasntp

    I have CraftBukkit in, I just dont know what packets to send, and stuff.
     
  13. Offline

    chaseoes

    Did you even look at the topic I linked?
     
  14. Offline

    nicholasntp

    Yeah im just really confused lol. I might just drop the idea haha. Thanks for your help though! :D
     
Thread Status:
Not open for further replies.

Share This Page