# Chat Rules

Utilize the Abilities scripting system to craft bespoke chat rules tailored to your server's specific needs. This flexible framework supports a wide array of rule types, from straightforward anti-caps measures to more complex ones like spam prevention, anti-advertising, similarity checks, and beyond. Our system comes with a suite of pre-made rules that are fully editable and configurable, offering a solid foundation for your moderation strategy.

## Example: `caps.yml` for Caps in Chat

```yaml
# Configuration for Caps in Chat
enabled: true
conditions:
  - '%permissions% contains advancedchat.caps || %is op% = true : %stop%'
  - '%caps_percentage% > 70 : %allow%'
effects:
  - 'CANCEL_EVENT'
  - 'MESSAGE:&c&l(!) &c%player name%, please do not use excessive caps.'
  # - 'CONSOLE_COMMAND:warn %player name% Caps' # you could also warn the player here
```

Learn more about abilities here: <https://wiki.advancedplugins.net/abilities/introduction>


---

# 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://chat.advancedplugins.net/features/chat-rules.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.
