From bed934ce09a6e724fdf4ea77f133b2f8fcecb869 Mon Sep 17 00:00:00 2001 From: ryanhamshire Date: Thu, 14 Jan 2016 10:25:41 -0800 Subject: [PATCH] Fixed automatic help from chat questions. Was changing dollar sign in regex to formatting code point. That conversion should not apply to regex strings. --- src/me/ryanhamshire/GriefPrevention/DataStore.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/me/ryanhamshire/GriefPrevention/DataStore.java b/src/me/ryanhamshire/GriefPrevention/DataStore.java index 57a3742..c1cbbae 100644 --- a/src/me/ryanhamshire/GriefPrevention/DataStore.java +++ b/src/me/ryanhamshire/GriefPrevention/DataStore.java @@ -1603,7 +1603,10 @@ public abstract class DataStore config.set("Messages." + messageID.name() + ".Text", this.messages[messageID.ordinal()]); //support color codes - this.messages[messageID.ordinal()] = this.messages[messageID.ordinal()].replace('$', (char)0x00A7); + if(messageID != Messages.HowToClaimRegex) + { + this.messages[messageID.ordinal()] = this.messages[messageID.ordinal()].replace('$', (char)0x00A7); + } if(messageData.notes != null) {