From 8f961c9d4e4246c030ba4881e46c4fcf1eb3eb69 Mon Sep 17 00:00:00 2001 From: md_5 Date: Sat, 27 Jul 2013 12:12:12 +1000 Subject: [PATCH] Put colours in default motd to try and force quoting in the dumped yaml --- proxy/src/main/java/net/md_5/bungee/config/YamlConfig.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/proxy/src/main/java/net/md_5/bungee/config/YamlConfig.java b/proxy/src/main/java/net/md_5/bungee/config/YamlConfig.java index 7d522b75..5ab92daa 100644 --- a/proxy/src/main/java/net/md_5/bungee/config/YamlConfig.java +++ b/proxy/src/main/java/net/md_5/bungee/config/YamlConfig.java @@ -170,7 +170,7 @@ public class YamlConfig implements ConfigurationAdapter Map val = entry.getValue(); String name = entry.getKey(); String addr = get( "address", "localhost:25565", val ); - String motd = ChatColor.translateAlternateColorCodes( '&', get( "motd", "Just another BungeeCord - Forced Host", val ) ); + String motd = ChatColor.translateAlternateColorCodes( '&', get( "motd", "&1Just another BungeeCord - Forced Host", val ) ); boolean restricted = get( "restricted", false, val ); InetSocketAddress address = Util.getAddr( addr ); ServerInfo info = ProxyServer.getInstance().constructServerInfo( name, address, motd, restricted ); @@ -195,7 +195,7 @@ public class YamlConfig implements ConfigurationAdapter for ( Map val : base ) { - String motd = get( "motd", "Another Bungee server", val ); + String motd = get( "motd", "&1Another Bungee server", val ); motd = ChatColor.translateAlternateColorCodes( '&', motd ); int maxPlayers = get( "max_players", 1, val );