# Colors

## 🎨 Colors & Formatting

Thanks to **AliienCore**, all my plugins seamlessly support **both** modern **MiniMessage** tags and traditional **Legacy color codes** (`&c`, `&#ffffff`). You can mix and match them however you prefer! While legacy codes are great for quick edits, MiniMessage is highly recommended for advanced styling like gradients and RGB formatting.

***

### 🌈 Basic Colors

You can use standard MiniMessage tags inside brackets `< >`, or stick to the classic `&` codes.

| MiniMessage Tag | Legacy Code | Result    |
| --------------- | ----------- | --------- |
| `<red>`         | `&c`        | Red Text  |
| `<gold>`        | `&6`        | Gold Text |
| `<blue>`        | `&9`        | Blue Text |
| `<gray>`        | `&7`        | Gray Text |

***

### 💅 Text Styling

You can stack styles or close them using a forward slash `</tag>`. Traditional formatting (`&l`, `&n`, etc.) works perfectly too!

* **Bold:** `<bold>URGENT!</bold>` *or* `&lURGENT!`
* **Italic:** `<italic>Notice:</italic>` *or* `&oNotice:`
* **Underline:** `<underlined>Important</underlined>` *or* `&nImportant`
* **Strikethrough:** `<strikethrough>Old Text</strikethrough>` *or* `&mOld Text`

***

### 💎 Advanced Effects (Gradients & Hex)

* **Hex Colors (RGB):** Use any hex code for specific branding. Both modern and legacy hex formats are supported!
  * *MiniMessage:* `<#ff5555>This is a custom red!`
  * *Legacy:* `&#ff5555This is a custom red!`
* **Gradients:** Perfect for flashy staff alerts.
  * `<gradient:red:gold>ATTENTION PLAYER!</gradient>`
* **Rainbow:**
  * `<rainbow>This text is a rainbow!</rainbow>`

***

### 📄 How to use it in config.yml

When editing your configuration, simply wrap your message in quotes. Because AliienCore parses everything natively, you can even mix and match systems in the same string:

```yaml
# Example: A red-to-white gradient alert combined with classic legacy color codes
alert: "<gradient:#ff0000:#ffffff><bold>ALERT!</gradient> &7%player%&l tried to use a blacklisted item!"
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://aliien.gitbook.io/aliien-docs/all-plugins/colors.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
