- Replace % when it is found in the channel formats.

- Closes https://github.com/TownyAdvanced/Towny/issues/6125
This commit is contained in:
LlmDl committed 2022-08-20 18:35:33 -05:00
1 parent e71f2d1a71
commit 60d2af7361
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.96</version>
<version>0.97</version>
<licenses>
<license>
+4 -1
View File
@@ -405,4 +405,7 @@ v0.96:
- Replace the splitter for channels saved in metadata with the , symbol.
- Fix the display_channel_join_message_on_joining_the_server option in the config not being used.
- Delay the login task by another tick so that the player's locale has been determined on the server.
- Closes https://github.com/TownyAdvanced/Towny/issues/5802
- Closes https://github.com/TownyAdvanced/Towny/issues/5802
v0.97:
- Replace % when it is found in the channel formats.
- Closes https://github.com/TownyAdvanced/Towny/issues/6125
@@ -213,7 +213,7 @@ public class TownyChatFormatter {
public static String getChatFormat(LocalTownyChatEvent event) {
// Replace the {msg} here so it's not regex parsed.
return hexIfCompatible(replacer.replaceAll(event.getFormat(), event).replace("{modplayername}", "%1$s").replace("{msg}", "%2$s"));
return hexIfCompatible(replacer.replaceAll(event.getFormat(), event).replace("%", "").replace("{modplayername}", "%1$s").replace("{msg}", "%2$s"));
}
/**