ryandw11 / UltraChat

A spigot plugin for the chat.
MIT License
3 stars 3 forks source link

Color in chat, for ranges #16

Open MrEigo opened 4 years ago

MrEigo commented 4 years ago

How do I make each range have a different color in the chat?

ryandw11 commented 4 years ago

At the bottom of the config.yml there is the following settings:

##############################################
#                   Range                    #
##############################################
#The global channel which everyone can see.
#All of these formats support Components. See Normal Chat for an example.
Global:
    format: '&6[Global]&r %prefix% %player% %suffix% &7>>'
World:
    format: '&d[World]&r %prefix% %player% %suffix% &7>>'
Local:
    format: '&b[Local]&r %prefix% %player% %suffix% &7>>'
    range: 100

Just add a color code after the >> Example:

##############################################
#                   Range                    #
##############################################
#The global channel which everyone can see.
#All of these formats support Components. See Normal Chat for an example.
Global:
    format: '&6[Global]&r %prefix% %player% %suffix% &7>>&b'
World:
    format: '&d[World]&r %prefix% %player% %suffix% &7>>&c'
Local:
    format: '&b[Local]&r %prefix% %player% %suffix% &7>>&d'
    range: 100