> For the complete documentation index, see [llms.txt](https://servertools.reece.sh/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://servertools.reece.sh/configurations/how-to/autobroadcast.md).

# AutoBroadcast

The following is a code snippet of the  AutoBroadcast functionality.&#x20;

{% tabs %}
{% tab title="Enabled" %}
Enable or disable auto broadcasting
{% endtab %}

{% tab title="centerall" %}
Enable if you wish to center all text in the Messages
{% endtab %}

{% tab title="Header/Footer" %}
List of strings that allow for PAPI & Internal Variables replacement for each top and bottom of the announcements

Header\
Message Text here\
Footer
{% endtab %}

{% tab title="Interval" %}
Number of seconds between each broadcast
{% endtab %}

{% tab title="Messages" %}
A list of unique keys which contain list of strings used for the actual announcement.\
\
Within each key, you can use the following values\
\- PAPI Variables (Global)\
\- Internal Variables from the config.yml<br>

\<center> \
When placed at the beginning of the line, it will center it to the average size of the box for a majority of players (154px) relative to the letter sizing of the string.\
\
\<command=/someCMD/>\
Allow users to click on the text and run a command. The user is prompted on the screen to ensure they wish to actually run the command. \
\
\<link=[https://www.google.com/>\\](https://www.google.com/>\\)
Allow users to click on the text and open a website. The user is prompted on the screen to ensure they wish to actually open the website they clicked on.
{% endtab %}
{% endtabs %}

```
AutoBroadcast:
  Enabled: true
  centerall: false
  use_this_to_override: "<center>"
  use_this_for_commands: "<command=/bc test2/> &dCLICK"
  Header: 
    - ''
    - '&8&l&m------------------------------------&7'
    - '<center>&d&l%SERVERNAME%'
    - ''
  Footer: 
    - ''
    - '&8&l&m------------------------------------&7'
    - ''
  Interval: 180
  Messages:
    website:
      - '<link="http://www.google.com"><center>View My Website Google.com!'
    rules:
      - '<center>&f%RULES%'
    discord:
      - '<center>&f%DISCORD%'
    store:
      - '<center>&f%STORE%'
    islandfly:
      - '<command=/vote/><center>&d/Vote &ffor 3 hours of &d/is fly&f!'
      - '<center>&7&o(Click to run the vote command)'
    warzone:
      - '<command=/warzone/><center>&fBattle in pvp with &c/warzone'
      - '<center>&7&o(Click to run the warzone command)'
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://servertools.reece.sh/configurations/how-to/autobroadcast.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.
