- Allow for $ and \ to be used in the chat line.
    - Closes: https://github.com/TownyAdvanced/Towny/issues/3960
This commit is contained in:
Llm Dl committed 2020-05-10 08:16:48 -05:00
1 parent 4a9c7a52ad
commit 5ef8fd21e9
3 files changed
+6 -3

No files matched your search

+1 -1
View File
@@ -7,7 +7,7 @@
<groupId>com.palmergames.bukkit</groupId>
<artifactId>TownyChat</artifactId>
<packaging>jar</packaging>
<version>0.69</version>
<version>0.70</version>
<licenses>
<license>
+4 -1
View File
@@ -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}.
- 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
@@ -46,7 +46,7 @@ public class StringReplaceManager<E> {
matcher.appendReplacement(sb, replacer.toString());
} else {
try {
String replacement = ((ReplacerCallable<E>)replacer).call(match, e);
String replacement = Matcher.quoteReplacement(((ReplacerCallable<E>)replacer).call(match, e));
matcher.appendReplacement(sb, replacement);
} catch (Exception exception) {
continue;