diff --git a/pom.xml b/pom.xml index 79a298b..f487858 100644 --- a/pom.xml +++ b/pom.xml @@ -7,7 +7,7 @@ com.palmergames.bukkit TownyChat jar - 0.69 + 0.70 diff --git a/resources/changelog.txt b/resources/changelog.txt index 8275d44..6f67fa5 100644 --- a/resources/changelog.txt +++ b/resources/changelog.txt @@ -298,4 +298,7 @@ v0.67: v0.68: - Updated comments to reflect change with toggling chats, courtesy of GenSecrets with PR #25. v0.69: - - Fix missing spaces from {title} & {surname} & {townypostfix}. \ No newline at end of file + - Fix missing spaces from {title} & {surname} & {townypostfix}. +v0.70: + - Allow for $ and \ to be used in the chat line. + - Closes: https://github.com/TownyAdvanced/Towny/issues/3960 \ No newline at end of file diff --git a/src/com/palmergames/bukkit/TownyChat/util/StringReplaceManager.java b/src/com/palmergames/bukkit/TownyChat/util/StringReplaceManager.java index 2de4fd8..1a0d933 100644 --- a/src/com/palmergames/bukkit/TownyChat/util/StringReplaceManager.java +++ b/src/com/palmergames/bukkit/TownyChat/util/StringReplaceManager.java @@ -46,7 +46,7 @@ public class StringReplaceManager { matcher.appendReplacement(sb, replacer.toString()); } else { try { - String replacement = ((ReplacerCallable)replacer).call(match, e); + String replacement = Matcher.quoteReplacement(((ReplacerCallable)replacer).call(match, e)); matcher.appendReplacement(sb, replacement); } catch (Exception exception) { continue;