- Remove 2 unused replacers in TownyChatFormatter.

This commit is contained in:
Llm Dl committed 2021-12-31 15:54:49 -06:00
1 parent c0ff36db3d
commit c8ee614e55
3 files changed
+4 -16

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.93</version>
<version>0.94</version>
<licenses>
<license>
+3 -1
View File
@@ -394,4 +394,6 @@ v0.93:
- Regression: NPE in EssentialsDiscordHookListener.
- Regression: NPE in TownyChatPlayerListener.
- Minimum Towny version set to 0.97.5.0.
- Use Towny's built-in Commented configuration & adapt to use the new width() option supplied by Spigot.
- Use Towny's built-in Commented configuration & adapt to use the new width() option supplied by Spigot.
v0.94:
- Remove 2 unused replacers in TownyChatFormatter.
@@ -192,20 +192,6 @@ public class TownyChatFormatter {
return event.getEvent().getPlayer().getName();
}
});
/*
replacer.registerFormatReplacement(Pattern.quote("{modplayername}"), new TownyChatReplacerCallable() {
@Override
public String call(String match, TownyChatEvent event) throws Exception {
return event.getEvent().getPlayer().getDisplayName();
}
});
*/
replacer.registerFormatReplacement(Pattern.quote("{channelTag}"), new TownyChatReplacerCallable() {
@Override
public String call(String match, LocalTownyChatEvent event) throws Exception {
return formatTownyTag(event.getResident(), false, false);
}
});
// Replace colours last ({msg} is replaced last as it can't be regex parsed).
replacer.registerFormatReplacement("&{1}[0-9A-Fa-fLlOoNnKkMmRr]{1}", new TownyChatReplacerCallable() {