Navigation & Rules
The left navigation bar is generated dynamically from the sections object in config/config.js. Each section can be shown or hidden individually.
The sections
js
sections: {
"first-theme": { enabled: true, title: "RULES", icon: "gavel", description: "..." },
"second-theme": { enabled: true, title: "GALLERY", icon: "collections_bookmark", description: "..." },
"third-theme": { enabled: true, title: "TEAM", icon: "groups", description: "..." },
"four-theme": { enabled: true, title: "UPDATE", icon: "browser_updated", description: "..." },
"five-theme": { enabled: true, title: "NEWS", icon: "newspaper", description: "..." },
},| Field | Description |
|---|---|
enabled | true shows the section (button + content), false hides it entirely |
title | Label shown in the navigation bar |
icon | A Google Material Symbols icon name |
description | Subtitle shown below the section title |
TIP
When a section is disabled (enabled: false), the others rearrange automatically. You could, for example, keep only RULES and NEWS.
The five keys (first-theme … five-theme) map to the five sections of the script:
| Key | Section | Detail page |
|---|---|---|
first-theme | Rules | below |
second-theme | Gallery | Gallery & Team |
third-theme | Team | Gallery & Team |
four-theme | Updates / Patchnotes | Discord patchnotes |
five-theme | News | News |
Rules section
The RULES section lists your server's roleplay rules via the rules object.
js
rules: {
title: "RULES",
elements: [
{
title: "Mass RP",
description: "Play your character realistically, avoid breaking RP immersion.",
},
{
title: "Power Gaming (PG)",
description: "Do not force unrealistic or impossible actions.",
},
// ...
],
},| Field | Description |
|---|---|
title | Section title (header) |
elements | Array of rules |
elements[].title | Rule name |
elements[].description | Detailed explanation of the rule |
Add / edit a rule
Add or edit an object in elements. There is no strict limit to the number of rules; the list scrolls if needed.
js
{
title: "Combat Logging",
description: "Do not leave the game to escape an RP situation.",
},