- 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
+5 -2

No files matched your search

+1 -1
View File
@@ -7,7 +7,7 @@
<groupId>com.palmergames.bukkit</groupId> <groupId>com.palmergames.bukkit</groupId>
<artifactId>TownyChat</artifactId> <artifactId>TownyChat</artifactId>
<packaging>jar</packaging> <packaging>jar</packaging>
<version>0.69</version> <version>0.70</version>
<licenses> <licenses>
<license> <license>
+3
View File
@@ -299,3 +299,6 @@ v0.68:
- Updated comments to reflect change with toggling chats, courtesy of GenSecrets with PR #25. - Updated comments to reflect change with toggling chats, courtesy of GenSecrets with PR #25.
v0.69: 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()); matcher.appendReplacement(sb, replacer.toString());
} else { } else {
try { try {
String replacement = ((ReplacerCallable<E>)replacer).call(match, e); String replacement = Matcher.quoteReplacement(((ReplacerCallable<E>)replacer).call(match, e));
matcher.appendReplacement(sb, replacement); matcher.appendReplacement(sb, replacement);
} catch (Exception exception) { } catch (Exception exception) {
continue; continue;