LegacyShell WikiLegacyShell Wiki
Back to LegacyShell
Home
Wiki
Plugins
Docs
Back to LegacyShell
Home
Wiki
Plugins
Docs
  • Plugins

    • Plugin Docs

      • Default

        • Crackshot
        • Auto Restart Notifications
        • Auto Shop Notifications
        • Block Viewer
        • Burnt Block Sets
        • Christmas Event
        • Classic Skybox
        • DeadInternet
        • Debug F3
        • Discord Playtest
        • dynamicmapblocks
        • FancyGraphics
        • Francium
        • Health Pack Item
        • Item ToolTips
        • LagCompensation
        • LegacyAchievements
        • LegacyAdmin
        • LegacyAnalytics
        • LegacyLightmaps
        • LegacyProfiles
        • LegacyReplay
        • LegacySettings
        • LegacyShellCore
        • LegacyThemes
        • LegacyWeather
        • Map Editor Saving
        • Modern Map Blocks
        • Modern Shell Guns
        • Modern Shell Hats
        • Modern Shell Stamps
        • Minerva
        • ParkourMode
        • Player Count Notifications
        • TimeMachine
        • Vaporwave Map Blocks
        • WhatsAppTheme
        • Wiki Only Mode
        • Zaxonius Custom Guns
        • ZombiesMode
      • Examples

        • Modern Shell Maps
    • List of plugins

Canonical source: plugins_default/wikionlymode/README.md - edit that file, not this page (this page is built live from it, nothing here is a tracked copy).

Wiki Only Mode

Takes the game offline for players while keeping the wiki and services up: the site's front page (/ and /index.html) is swapped for a "currently unavailable" notice, answered with a 503, and everything else - /wiki, the shared images that page uses, the services connection - carries on as normal. Useful for maintenance where the docs should stay readable.

This is different from core's closed mode, which replaces the whole client site with src/client-closed.

Turning it on

On the first client server boot it creates plugins_default/wikionlymode/store/config.jsonc:

{
    // enabled: whether wiki-only mode is currently active (swaps "/" for the unavailable page)
    // reason: which message to show - one of: none, offline, maintenance, emergency, update, migration (see reasons.js)
    "enabled": false,
    "reason": "maintenance"
}

Set enabled to true, pick a reason, and restart the client server - the file is read once, when the plugin loads. LegacyAdmin's config editor lists plugin store/ files too, so it can be flipped (and the client restarted) from the admin panel.

Reasons

reasonTitleMessage
noneCurrently UnavailableWe'll be back shortly.
offlineOffline for NowThe game is currently offline.
maintenance (default)Under MaintenanceWe're performing scheduled maintenance. Check back soon!
emergencyEmergency Fix In ProgressWe've hit an issue and are working to get things back up as fast as we can.
updateMajor Update In ProgressWe're rolling out a big update - this won't take long!
migrationMigrating ServersWe're moving to new servers for a better experience. Thanks for your patience!

Add your own in reasons.js; an unknown reason falls back to the default. The page itself is built by unavailablePage.js.

How it works

It mounts one middleware on client:onStartServer, which fires before core's closed-mode gate and its own static mounts, so it sees every request first and only answers / and /index.html.

Prev
WhatsAppTheme
Next
Zaxonius Custom Guns