Fix color code gibberishing for announcements.

This commit is contained in:
garbagemule 2013-08-16 01:09:39 +02:00
parent e1feb5172c
commit b0c630df36

View File

@ -86,15 +86,15 @@ public enum Msg {
}
void set(String value) {
this.value = ChatColor.translateAlternateColorCodes('&', value);
this.value = value;
}
public String toString() {
return value;
return ChatColor.translateAlternateColorCodes('&', value);
}
public String format(String s) {
return value.replaceAll("%", s);
return toString().replaceAll("%", s);
}
static void load(ConfigurationSection config) {