You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
files."filename.toml".value escaping MiniMessage color tags #158
I got a velocity server running but I can't change the color of the standard motd because the files set escapes the MiniMessage tags.
This is my config:
{config,pkgs, ... }:
{sops.secrets.velocity.owner="minecraft";services.minecraft-servers={enable=true;eula=true;openFirewall=true;servers.proxy={enable=true;package=pkgs.velocityServers.velocity;stopCommand="stop";files={"velocity.toml".value={config-version="2.5";bind="0.0.0.0:25565";motd="<red>This server is currently offline.</red>";online-mode=true;ping-passthrough="ALL";servers={smp="10.15.0.2:25565";try=["smp"];};forced-hosts.smp=["smp"];player-info-forwarding-mode="modern";forwarding-secret-file=config.sops.secrets.velocity.path;};"plugins/bStats/config.txt".value=["enabled=false"];};};};}
But the generated velocity.toml file contains the line motd = "\\<red>This server is currently offline.\\</red>" which escapes the color tags.
If I missed the option how to disable the auto escaping of the MiniMessage tags then please tell me.
Thanks for reading.
changed the title [-]`files."fdilename.toml".value` escaping MiniMessage color tags[/-][+]`files."filename.toml".value` escaping MiniMessage color tags[/+]on Jun 27, 2025
Activity
[-]`files."fdilename.toml".value` escaping MiniMessage color tags[/-][+]`files."filename.toml".value` escaping MiniMessage color tags[/+]Infinidoge commentedon Jul 18, 2025
Very strange. As best as I can tell, it should be calling
pkgs.formats.toml's generate directly, and from my testingit generates fine:

When I get the chance, I'll test it in the module itself.