Skip to content

Conversation

@darkstarworks
Copy link

@darkstarworks darkstarworks commented Oct 20, 2025

Adding a Velocity feature to change the MOTD when all servers are offline

Key Changes:

  • Add offline config loader through offlineConfig in the ConfigManager
    -- that is created as offline-config.conf, where the offline MOTD is set:
   # This configuration is used when all backend servers are offline.
   # To enable this feature, set 'use-offline-motd=true' in main.conf
   
   motds=[
     {
       icon=random
       line1="<red><bold>⚠ SERVER OFFLINE ⚠"
       line2="<gray>We're currently performing maintenance!"
     }
   ]
   # ... (all other MOTDConfig fields)
  • Add support for hocon boolean in main.conf through boolean useOfflineMotd in MOTDConfig:
   # Enable offline MOTD when all servers are offline
   # Requires offline-config.conf file to be present

   use-offline-motd=false

Adding a Velocity feature to change the MOTD when all servers are offline
Adding a Velocity feature to change the MOTD when all servers are offline
@darkstarworks darkstarworks changed the title Darkstarworks velocity patch 1 darkstarworks velocity patch 1.1 Oct 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant