Configuration

Configuration

View as Markdown ·

On this page

Everything the editor writes ends up in modules/motd.yml. Behind a proxy the same tree lives in the proxy's own config.yml, one level deeper, under motds, so motd.server-icon here is motds.motd.server-icon there.

What each option does in the editor is on the MOTD and Player Count pages, and every one of them accepts placeholders.

This is the whole file with every option in use at once:

YAML
enabled: true
motd:
    motds:
        '0':
            - '                 &d&lPHOENIX LOBBY MOTD'
            - '          &8Learn more at &7&nwww.phoenixplugins.com'
        '1':
            - '                 &d&lPHOENIX LOBBY MOTD'
            - '            &8Come check out our &7&ncool plugins&8!'
    server-icon: 'winter'
    player-count:
        text: 'JOIN'
        hover:
            - ' &7HELLO'
        online-players: '10'
        max-players: '344'
        extra-players: 100
        hide-players: false
        hide-players-hover: false
    maintenance:
        enabled: true
        motd:
            - '                &c&lUNDER MAINTENANCE'
            - '              &8We will be back in &7{timer}'
        player-count-message:
            enabled: true
            enable-timer-specific-message: true
            message: '<dark_red>Maintenance'
            timer-message: '<dark_red>Come back in: <yellow>{timer}'
        player-list-hover-message:
            enabled: true
            enable-timer-specific-message: true
            message: '<red>Currently under<br><red>maintenance'
            timer-message: '<red>Come back in:<br><yellow>{timer}'
        maintenance-icon:
            enabled: false

#Options

Option What it does Example
enabled Whether the module touches the ping at all. false hands the message, the icon and the count back to server.properties, and only the maintenance motd is still applied. enabled: true
motd.motds The message variants. Each numbered key holds one variant of two lines, and one variant is picked at random on every ping. The numbers are only ids, so they have to be unique and quoted. see Message Variants below
motd.server-icon Name of a 64x64 png inside the servericons folder, written without the .png. Empty keeps the server's own server-icon.png. server-icon: 'winter'
motd.player-count.text Free text drawn where the online/max numbers usually are. Empty keeps the numbers. Filling it in also puts the red incompatible-version marker on your entry. text: 'JOIN'
motd.player-count.hover Lines shown when the count is hovered, in place of the player sample. Empty keeps the real sample. hover: [' &7HELLO']
motd.player-count.online-players Overrides the first number. Written as a string so placeholders fit; anything that does not come out as a number is ignored and the real count is used. online-players: '10'
motd.player-count.max-players Overrides the second number, which is otherwise the slot count from server.properties. max-players: '344'
motd.player-count.extra-players Reports the maximum as however many players are online plus this number, so the server never looks full. Ignored while max-players is set. extra-players: 100
motd.player-count.hide-players Drops the count from the ping entirely, so nothing is drawn where the numbers usually are. hide-players: false
motd.player-count.hide-players-hover Removes the hover list without touching the numbers. hide-players-hover: false
motd.maintenance.enabled Whether a running maintenance replaces the message variants with its own message. enabled: true
motd.maintenance.motd The lines shown while a maintenance is running. {timer} is how much time is left. The server icon and the player count around it still apply. see Maintenance Message below
motd.maintenance.player-count-message.enabled Whether a running maintenance replaces the player count with message. enabled: true
motd.maintenance.player-count-message.enable-timer-specific-message Uses timer-message instead while the maintenance has an end time. enable-timer-specific-message: true
motd.maintenance.player-count-message.message Text drawn where the online/max numbers usually are during a maintenance. message: '<dark_red>Maintenance'
motd.maintenance.player-count-message.timer-message The same, while an end time is set. {timer} is how much time is left. timer-message: '<dark_red>Come back in: <yellow>{timer}'
motd.maintenance.player-list-hover-message.* The same four options for the hover list. <br> starts a new line. message: '<red>Currently under<br><red>maintenance'
motd.maintenance.maintenance-icon.enabled Swaps the server icon for maintenance-icon.png from the plugin folder during a maintenance. Read on reload; a missing file keeps the regular icon. enabled: false

circle-exclamation

text, hover, online-players, hide-players and hide-players-hover need Paper or a fork of it. On plain Spigot the module says so once on startup and applies what is left: the message, the icon, max-players and extra-players.

#Message Variants

Two variants, picked between at random on every ping. Dropping one of the two lines is fine, and so is a single variant, which then shows every time.

YAML
motd:
    motds:
        '0':
            - '&d&lYOUR SERVER'
            - '&7A new message of the day.'
        '1':
            - '&d&lYOUR SERVER &7- &b{player name}'
            - '&7Welcome back!'

#Custom Icon

Shows servericons/winter.png next to the message. A larger image is scaled down to 64x64 for you.

YAML
motd:
    server-icon: 'winter'

#Never Looking Full

Keeps the bar from ever filling up, since the maximum is always however many players are online plus 100.

YAML
motd:
    player-count:
        max-players: ''
        extra-players: 100

#Text Instead Of The Numbers

Replaces 12/100 with a word. Remember that the client only draws text there for a version it cannot join, so the entry is marked as incompatible while this is set.

YAML
motd:
    player-count:
        text: 'JOIN'

#Notice In The Hover

The hover is the one place in the list where more than two lines fit, which makes it the spot for a rules note or a vote link.

YAML
motd:
    player-count:
        hover:
            - '&d&lEVENT THIS WEEKEND'
            - '&7Saturday at 18:00'
            - ''
            - '&8Vote at &7&nwww.example.com/vote'

#Keeping Names Private

Leaves the count honest while keeping the list of who is online out of the ping.

YAML
motd:
    player-count:
        hide-players: false
        hide-players-hover: true

#Maintenance Message

While a maintenance is running these lines replace the message variants, and everything else in the section keeps applying, unless the maintenance player count message, hover message or icon are turned on, which replace those too.

YAML
motd:
    server-icon: 'maintenance'
    player-count:
        text: 'CLOSED'
    maintenance:
        enabled: true
        motd:
            - '                &c&lUNDER MAINTENANCE'
            - '              &8We will be back in &7{timer}'

Turning it off with enabled: false leaves the normal variants showing through a maintenance. What starts and ends one is on the Maintenance page.

circle-info

The editor rewrites this file whenever something is saved, so any key that is not one of the above is dropped. Everything here is read fresh on every ping, so editing the file by hand takes effect on the next refresh of the list without a restart.

My Cart
Spider

Your cart is empty

Looks like the spiders padded through here. Pick a plugin and it will show up here. Continue shopping