Rules & Help
The Rules module: project rules with permanent links to clauses, a ladder of sanctions on each clause, a public edit history and a help section.
The module keeps the project rules as documents with sections and clauses. Every clause has a permanent link, a number that recounts itself when clauses move, and a ladder of sanctions: what follows the first offence, the second and so on. Meaningful edits go to the "What changed" page, and a help section with articles sits next to the rules.

| Dependencies | Games | Permissions | Studio blocks | Bot commands | Cron tasks |
|---|---|---|---|---|---|
| Flute 2.0; Chat optional | any | admin.rules, admin.rules.view, rules.edit, rules.publish, rules.revert | "Rules in short", "Popular help articles" | none | none |
What appears on the site
The rules open at /rules and from the "Rules" menu item. Each document has its own address (/rules/<slug>), and a clause has the permanent link /rules/p/<number>, which stays the same when the clause is moved or renamed. The /rules/changes page shows meaningful edits as "Was" and "Now". Help opens at /help, and its articles carry "Was this helpful?".
The ladder of sanctions shows under each clause. With the Sentinel punishments module installed, a visitor with sanctions in force sees the "You have active sanctions" block on the rules page, with the clauses they were given by.
The module adds the Studio blocks "Rules in short" (sections, or sections with clauses, of one document) and "Popular help articles". The GameLink game menu gets the sections and clauses of the main document with a "Full text on the site" button; the order of menu items is set in the game menu.
Install and first setup
Install the module from the marketplace as described in first steps. The admin gets a "Rules & Help" row in the "Site" group with the "Rules", "Help" and "Settings" tabs: AdminRules & HelpRules.

Create a document
Click "Add document", set the "Title", for example "Project rules", and turn on "Published" and "Main rules document". The site's "Rules" link leads to the main document.
Paste a ready text
If the rules are already written, click "Paste a ready text" and paste them into the "Text or Markdown" field. A heading # Chat or a line 2. Chat becomes a section, and a line 2.3 … or a list line becomes a clause. Click "Show what was found", check "To be created: … sections, … items" and click "Create drafts".
Publish the clauses
Everything created stays a draft. Open a clause and click "Publish", or click "Publish everything" on the document to publish every draft that has a text.
Clauses and sections move by dragging their row. The numbers recount on their own, and links to clauses stay the same.
A clause and its ladder of sanctions
Say insulting players in chat is forbidden on the server. The first time the player gets a warning, the second time a day-long chat ban, the third time a week-long ban.
Add the clause
In the "Chat" section click "Add clause", type the "Title", for example "Insults", and click "Create". Open the clause and describe what is forbidden on the "Text" tab.
Fill in the ladder
Open the "Sanction" tab. Each row is one offence: "Offence 1", "Offence 2" and so on. Choose the "Kind", set a term and, if you like, a "Note":
| Row | Kind | Term |
|---|---|---|
| Offence 1 | Warning | none |
| Offence 2 | Chat ban | 1 day |
| Offence 3 | Ban | 7 days |
The term is a number with a unit or one of the preset term buttons. An empty term means for good, and a warning or a kick has no term. "More steps" opens further rows, up to ten in all.

Save with a comment
In "What changed" write one sentence for the changes page and the notification, for example "Added a ban for repeated insults". Mark a typo as a "Minor edit": the clause date stays and players do not see the edit in the history. Click "Save".
The kinds are "Warning", "Voice mute", "Chat ban", "Kick", "Ban", "Writing on the site forbidden" and "Other". Players see the ladder under the clause while "Show sanctions at clauses" is on.
The module punishes nobody itself; the ladder is used by whatever does the punishing. In the Sentinel module open AdminPunishmentsPunishment reasons and pick a "Rule" for a reason: a punishment for that reason cites the clause and takes the term from its ladder, by the player's offence count. In the site's "Forbid writing" form, published clauses are offered as ready reasons, and the term comes from the first "Writing on the site forbidden" step. The editor shows how often a clause was applied in its "applied: …" line.
Settings
AdminRules & HelpSettings
| Field | What it changes | Default |
|---|---|---|
| "Module name" | the admin menu item, the settings and the site search. Empty: "Rules & Help" | empty |
| "Address of the rules section", "Address of the help section" | the first part of the address, the old one redirects to the new one | rules, help |
| "Help section" | off: only the rules stay on the site and help pages do not open | on |
| "Change history for players" | the "What changed" page with meaningful edits. Editors always see it | on |
| "Rules in the game menu" | sections and clauses of the main document in the GameLink menu | on |
| "Show sanctions at clauses" | off: the ladder is visible in the editor only | on |
| the "Your account" block on the rules page | the visitor's sanctions in force, needs a sanctions module | on |
| "Clause numbers" | 2.3, § 2.3 or "No numbers", the way a number is written on the site and in punishment reasons | 2.3 |
| "What a guest sees" | "Rules and help", "Rules only" or "Nothing" | "Rules and help" |
| "Notify about meaningful changes" | "Do not notify", "Rules only" or "Rules and help". Every account, at most once an hour per clause | "Do not notify" |
| "Preset sanction terms, hours" | the buttons over the term in the ladder, up to eight | 1, 24, 168, 720 |
"Name of the rules section" and "Name of the help section" default to "Rules" and "Help". "Line under the rules heading" and "Line under the help heading" are empty by default. "Search in clauses and articles", the "Helpful / not helpful" switch on articles and "Edit date at clauses" are on. "Edits per page of What changed" runs from 5 to 100, 20 by default. "Articles in Helps most often" defaults to 5, and at 0 the block is gone.
admin.rules gives documents, structure and settings. admin.rules.view opens the module in the admin. rules.edit edits texts and sanctions, rules.publish publishes and hides, rules.revert brings back an earlier revision through "History" and "Bring this revision back".
A rules clause has "AI review by this clause" on its "Sanction" tab, with "Suggest to a moderator" and "Do not use". The "Let AI apply automatically" button lets the review punish without a moderator. After a meaningful edit of the text or the sanctions the mode goes back to "suggest". The review itself is done by the Flute AI module.
For developers
After each edit the module dispatches flute.rules.item_changed (RuleItemChanged: itemId, documentId, revision, editorId, minor, kind) and sends the rules.item_changed webhook ("A rules clause or a help article changed") with the number, title, permanent link and edit comment. The API offers the read-only resources rule-documents and rule-items.
A punishments module plugs in through two contracts in Flute\Modules\Rules\Contracts. RuleUsageProvider reports how often a clause was applied, and RuleStandingProvider reports a user's sanctions in force for the "Your account" block. Both are registered with Flute\Modules\Rules\Services\RuleUsage (register(), registerStanding()).
How the core side works: Events and listeners, API keys and the REST API, Module REST API, Another module in the provider, Extension points.
Troubleshooting
For any other message, use the error lookup.
Punishments were issued under this clause: it can be hidden, not deleted.
Issued punishments point to the clause, and deleting it would leave them without a reason. Click "Hide": the clause leaves the site, and links from the punishments keep working.
Another editor changed this clause. Open it again and repeat your edit.
Someone else saved the clause while you were editing it. Close the window, open the clause again and make your edit once more; the other revision is kept in "History".
| Message | What to do |
|---|---|
| "Check the sanctions: a kind from the list, a term like 30m, 12h or 7d, ten steps at most." | choose a kind from the list and set the term with a button or a number with a unit |
| "A published item needs a text. Hide the item or write the text." | fill in the "Text" or click "Hide" |
| "No sections and items were found in the text, or there are more than can be created at once (50 sections, 400 items)." | give sections headings or numbers, paste a long text in parts |
| "Address: Latin letters, digits and hyphens, up to 64 characters; "p" and "changes" are taken." | change the document "Address" |
| "Another editor is changing the documents right now. Try again in a few seconds." | wait and try again |