Console /rules now fetches from Discord async (was returning hardcoded fallback without attempting fetch). DIAG logging kept for observability. All 6 builds at 1.0.5. CHANGELOG.md, INSTALL.md, ACTIVE_CONTEXT.md updated. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1.5 KiB
1.5 KiB
Rules Mod — Install Procedure
Correct Install Steps
- Place the jar in the server's
mods/folder - Start the server once — Forge generates the config with defaults
- Stop the server
- Edit
config/firefrostrules-common.toml(orconfig/discordrules-common.toml):- Set
bot_tokento your Discord bot token - Set
channel_idto the channel containing your rules message - Set
message_idto the specific message ID - IMPORTANT: Keep the [discord] and [performance] section headers!
- Only change the values, not the file structure
- Set
- Start the server again
Verify It Worked
Check server logs on startup for:
Rules mod config loaded successfully. Channel: <your_channel_id>
If you see this instead, the config is still on defaults:
Rules mod is using default config values! Edit config/firefrostrules-common.toml
Config Location
The config lives at config/firefrostrules-common.toml (COMMON type).
This loads once at startup and persists reliably across restarts.
Testing /rules
Both console and in-game /rules will fetch from Discord. However,
for the best test, have a player run /rules in-game. The console
path fetches async and displays the result, but the in-game path
also shows the "Fetching latest rules..." message and applies the
per-player cooldown.
Upgrading from v1.0.0 or v1.0.1
Old versions used world/serverconfig/firefrostrules-server.toml.
That file is now ignored. Copy your values to the new location above.