From ec354821023efd8eec0cde31ef862e7ad63a35d8 Mon Sep 17 00:00:00 2001 From: md_5 Date: Thu, 24 Jan 2013 11:34:30 +1100 Subject: [PATCH] Properly colour MOTDs --- proxy/src/main/java/net/md_5/bungee/config/YamlConfig.java | 3 +++ 1 file changed, 3 insertions(+) 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 a3da837e..fe310faa 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 @@ -14,6 +14,7 @@ import java.util.HashSet; import java.util.Map; import java.util.logging.Level; import net.md_5.bungee.Util; +import net.md_5.bungee.api.ChatColor; import net.md_5.bungee.api.ProxyServer; import net.md_5.bungee.api.config.ConfigurationAdapter; import net.md_5.bungee.api.config.ListenerInfo; @@ -173,6 +174,8 @@ public class YamlConfig implements ConfigurationAdapter for (Map val : base) { String motd = get("motd", "Another Bungee server", val); + motd = ChatColor.translateAlternateColorCodes('&', motd); + int maxPlayers = get("max_players", 1, val); String defaultServer = get("default_server", "lobby", val); boolean forceDefault = get("force_default_server", false, val);