In Minecraft plugin yml files like config.yml, how would I give something's nbt display a color?

Solution 1:

This is a plugin's yml file, meaning that how the information inside is handled depends entirely on the plugin's code. You should contact the plugin's author to ask if this is even possible, and if so, how it could be done. However, following normal minecraft color name conventions, I would say you could try:

{"Name:"{\"text\":\"Foo\",\"color\":\"red\"}"}

Above is how minecraft itself does it with item NBT, but I highly doubt that this would work for your specific plugin's config.yml

Solution 2:

Most plugins do not support NBT. If you want to universally add colour, you need to use Formatting Codes. Many plugins replace the ampersand ("&"), with the section sign("§").

To change the item's name to red, simply set the item name in the config, and add &c to the beginning.

Unfortunately, this does not allow use of RGB colour.