mirror of
https://github.com/darksaid98/TownyChat.git
synced 2026-12-04 14:38:58 +00:00
- Remove 2 unused replacers in TownyChatFormatter.
This commit is contained in:
1 parent
c0ff36db3d
commit
c8ee614e55
3 files changed
+3
-15
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.93</version>
|
<version>0.94</version>
|
||||||
|
|
||||||
<licenses>
|
<licenses>
|
||||||
<license>
|
<license>
|
||||||
|
|||||||
@@ -395,3 +395,5 @@ v0.93:
|
|||||||
- Regression: NPE in TownyChatPlayerListener.
|
- Regression: NPE in TownyChatPlayerListener.
|
||||||
- Minimum Towny version set to 0.97.5.0.
|
- 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();
|
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).
|
// Replace colours last ({msg} is replaced last as it can't be regex parsed).
|
||||||
replacer.registerFormatReplacement("&{1}[0-9A-Fa-fLlOoNnKkMmRr]{1}", new TownyChatReplacerCallable() {
|
replacer.registerFormatReplacement("&{1}[0-9A-Fa-fLlOoNnKkMmRr]{1}", new TownyChatReplacerCallable() {
|
||||||
|
|||||||
Reference in new issue
Block a user