Translate the colors.

This commit is contained in:
cnaude 2016-12-16 17:19:51 -07:00
parent 87dd05111a
commit a6d09352bf

View File

@ -58,7 +58,7 @@ public class OreBroadcastListener implements Listener {
} }
String color = ob.getConfig().getString("colors." + blockName, "white").toUpperCase(); String color = ob.getConfig().getString("colors." + blockName, "white").toUpperCase();
ChatColor oreColor = ChatColor.valueOf(color); ChatColor oreColor = ChatColor.valueOf(color);
String oreName = translateOre(blockName, color); String oreName = ChatColor.translateAlternateColorCodes('&', translateOre(blockName, color));
plugin.logDebug("onOreBroadcastEvent caught"); plugin.logDebug("onOreBroadcastEvent caught");
for (PurpleBot ircBot : plugin.ircBots.values()) { for (PurpleBot ircBot : plugin.ircBots.values()) {