Colored Ranks?

Discussion in 'Bukkit Help' started by iamx666, Feb 12, 2011.

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

    iamx666

    Hey, how do I add color to ranks... Whenever I try it doesn't work... Please just tell me the code for one color and I'll be good.

    Thanks in advance!
    --- merged: Feb 12, 2011 3:19 PM ---
    If anyone knows how please let me know!
     
  2. Offline

    Plague

    You men in the chat text? ChatColor.RED (etc.)
     
  3. Offline

    iamx666

    no like the names of the ranks like if i want Admins to be green. how do i do that?
     
  4. Offline

    Plague

    Yes, I meant that, the <Name>:
     
  5. Offline

    iamx666

    how do i do that tho
     
  6. Offline

    Bradyownz

    bumb i need this too
     
  7. Offline

    Pencil

    You mean for permissions? as in the prefix/suffix?
     
  8. Offline

    iamx666

    Ok i want the VIP Group to be green so every1 that is a VIP, There color of their name is green.
     
  9. Offline

    Plague

    Okay, this is from my code where every user has a RED name in chat:
    Code:
    public void onPlayerChat(PlayerChatEvent event) {
            event.setFormat(event.getFormat().replaceFirst("<", "<" + ChatColor.RED));
            event.setFormat(event.getFormat().replaceFirst(">", ChatColor.WHITE + ">"));
        }
     
  10. Offline

    TIIIIIMMMMMMMMM

    See if you can figure out how to use iChat
     
  11. Offline

    Abrupt

    this is in Discussion ad Support, not the plugin development section, so he obviously isn't looking for programming help.
     
  12. Offline

    iamx666

    No im looking for something like this:
    Admins-Green Color
    VIP-Red Color
    default-white
    mods-blue

    stuff like that...
    i just need the code to change the color of their names...

    like in hey0 it was this
    Admins:ยง4:blah:blah:etc.
     
  13. Offline

    Plague

    Mine does not work?
     
  14. Offline

    GamerX

    Here, try this:
    But remember, you need iChat

    Code:
    groups:
        Member:
            default: true
            info:
                prefix: '&f'
                suffix:
                build: true
            inheritance:
                - Guest
            permissions:
    
        VIP:
            default: false
            info:
                prefix: '&c'
                suffix:
                build: true
            inheritance:
                - Member
            permissions:
    
        Moderator:
            default: false
            info:
                prefix: '&b'
                suffix:
                build: true
            inheritance:
                - VIP
            permissions:
    
        Admin:
            default: false
            info:
                prefix: '&a'
                suffix:
                build: true
            inheritance:
                - Moderator
            permissions:
                - '*'
    --- merged: Feb 13, 2011 8:39 PM ---
    The color is: -Lighter colours
    Moderator = &b
    VIP = &c
    Admin =&a
    Default = &f (White)

    But you also have this: -Darker colours
    Moderator = &1
    VIP = &4
    Admin = &2
    Default = &f (White)

    Link to colour codes
     
  15. Offline

    TIIIIIMMMMMMMMM

  16. Offline

    GamerX

    Those colours is just filled in on a computer.
    The link i gave, you can see how the colours is inside minecraft ;)
     
  17. Offline

    iamx666

    Yes this is what im talking about! Thanks a bunch!
     
  18. Offline

    GamerX

  19. Offline

    Plague

    OMG, I thought he meant the actual code, like programming code, sheesh.
     
  20. Offline

    GamerX

    @Plague , stop thinking so ADVANCED!
     
  21. Offline

    Plague

    Well only advanced answer are not found on freaking google ;)
     
Thread Status:
Not open for further replies.

Share This Page