Fix color code gibberishing for announcements.
This commit is contained in:
@@ -86,15 +86,15 @@ public enum Msg {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void set(String value) {
|
void set(String value) {
|
||||||
this.value = ChatColor.translateAlternateColorCodes('&', value);
|
this.value = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return value;
|
return ChatColor.translateAlternateColorCodes('&', value);
|
||||||
}
|
}
|
||||||
|
|
||||||
public String format(String s) {
|
public String format(String s) {
|
||||||
return value.replaceAll("%", s);
|
return toString().replaceAll("%", s);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void load(ConfigurationSection config) {
|
static void load(ConfigurationSection config) {
|
||||||
|
|||||||
Reference in New Issue
Block a user