mirror of
https://github.com/darksaid98/TownyChat.git
synced 2026-12-04 06:28:57 +00:00
- Replace % when it is found in the channel formats.
- Closes https://github.com/TownyAdvanced/Towny/issues/6125
This commit is contained in:
1 parent
e71f2d1a71
commit
60d2af7361
3 files changed
+5
-2
No files matched your search
@@ -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.96</version>
|
<version>0.97</version>
|
||||||
|
|
||||||
<licenses>
|
<licenses>
|
||||||
<license>
|
<license>
|
||||||
|
|||||||
@@ -406,3 +406,6 @@ v0.96:
|
|||||||
- Fix the display_channel_join_message_on_joining_the_server option in the config not being used.
|
- 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.
|
- 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) {
|
public static String getChatFormat(LocalTownyChatEvent event) {
|
||||||
// Replace the {msg} here so it's not regex parsed.
|
// 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"));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in new issue
Block a user