mirror of
https://github.com/darksaid98/TownyChat.git
synced 2026-12-02 06:28:58 +00:00
- Remove 2 unused replacers in TownyChatFormatter.
This commit is contained in:
1 parent
c0ff36db3d
commit
c8ee614e55
3 files changed
+4
-16
No files matched your search
@@ -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>
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in new issue
Block a user