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!
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 + ">")); }
this is in Discussion ad Support, not the plugin development section, so he obviously isn't looking for programming help.
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.
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
Those colours is just filled in on a computer. The link i gave, you can see how the colours is inside minecraft