# Rules

Write the city's rules in the panel, publish them on their own website with a menu and topics, and bring the link to Discord.

Source: https://fivedash.fivex.gg/docs/en/rules/overview

The **Rules** module is the city hall: the place where the laws are written down and anyone can read them. You write the pages in the panel (with headings, callouts, penalty tables, steps and videos), publish when everything looks right, and FiveDash builds a website just for the rules, with a menu, each page's topics and a link to share on Discord. This page is for the owner and the staff who handle the server's rules.

## Before you start

* **Plan:** the Rules module must be in the organization's plan. The **Rules website and Discord panel** come with every plan; **Your own domain** starts on Pro. See [Plans and billing](https://fivedash.fivex.gg/docs/en/getting-started/plans-and-billing).
* **Create the website:** only someone with **Pages** at the **Configure** level creates the website. Everyone else sees **The rules website hasn't been created yet**.
* **Discord panel:** needs the server's bot set up in the Discord module. See [Bot](https://fivedash.fivex.gg/docs/en/discord/bot).

## How it works

1. **Draft:** pages save themselves as you type. Nobody outside the team sees drafts.
2. **Publish:** the **Publish** button, at the top, sends every change to the website at once. Until then, the website shows the previous version.
3. **Live:** the website only opens for everyone with **Live** turned on in **Rules → Website**. While offline, only staff with access to the rules can open it.
4. **Discord:** in **Rules → Discord**, the bot keeps a pinned panel in a channel with the button to the website.

## What's in the module

| Page        | Path in the panel   | What it does                                                                                               |
| ----------- | ------------------- | ---------------------------------------------------------------------------------------------------------- |
| **Pages**   | **Rules → Pages**   | The editor: the pages, the menu's groups and the **Publish** button. The first time, creating the website. |
| **Website** | **Rules → Website** | Address, name, description, share image, look and **Live**.                                                |
| **Discord** | **Rules → Discord** | The rules panel in a Discord channel.                                                                      |

## The website's address

Every rules website gets a **Free address** in this format:

```http
https://<address>.fivedash.site
```

For example, `https://example-city.fivedash.site`. Each page lives at `https://example-city.fivedash.site/<page-address>`, and the website's address opens the first page. From Pro up, you can connect a domain of the city's, like `rules.yourcity.com`. See [Website](https://fivedash.fivex.gg/docs/en/rules/site).

## Access levels

Access is given in **Settings → Members**, **Rules** module.

| Area        | Level         | What it allows                                       |
| ----------- | ------------- | ---------------------------------------------------- |
| **Pages**   | **View**      | Read the pages and drafts                            |
| **Pages**   | **Configure** | Write, organize and publish (and create the website) |
| **Site**    | **View**      | The site's address and status                        |
| **Site**    | **Configure** | Address, name and putting it live                    |
| **Discord** | **View**      | The rules panel on Discord                           |
| **Discord** | **Configure** | Channel, texts, shortcuts and posting the panel      |

## FAQ

**Can players see what I'm writing?**
No. The website only shows the last published version. Drafts and new pages show up after **Publish**.

**I published and players can't open the website. Why?**
The website starts **Offline**. Turn on **Live** in **Rules → Website** and save.

**Is there an assistant to write the rules?**
Yes. In the editor, the **Assistant** button opens the **Rules assistant**, which writes, reviews and organizes pages as drafts. It needs FiveDash AI in the plan.

## Next steps

[Pages](https://fivedash.fivex.gg/docs/en/rules/pages)Create the website, write and publish the pages.
[Website](https://fivedash.fivex.gg/docs/en/rules/site)Address, name, look and going live.
[Discord panel](https://fivedash.fivex.gg/docs/en/rules/discord-panel)Bring the rules to a Discord channel.
[Team and permissions](https://fivedash.fivex.gg/docs/en/dashboard/team-and-permissions)Who writes and who only reads.
