mirror of
https://github.com/darksaid98/TownyChat.git
synced 2026-12-04 14:38:58 +00:00
- Fixed missing {} around modplayername.
This commit is contained in:
1 parent
86d6cbea7c
commit
0923d35dd4
2 files changed
+2
-1
No files matched your search
@@ -6,3 +6,4 @@ v0.2:
|
|||||||
If players are using chat modes we need to run first to cancel the chat event for other plugins.
|
If players are using chat modes we need to run first to cancel the chat event for other plugins.
|
||||||
v0.3:
|
v0.3:
|
||||||
- TownyChat now only enables itself if Towny successfully starts.
|
- TownyChat now only enables itself if Towny successfully starts.
|
||||||
|
- Fixed missing {} around modplayername.
|
||||||
@@ -180,7 +180,7 @@ public class TownyChatFormatter {
|
|||||||
|
|
||||||
public static String getChatFormat(TownyChatEvent event) {
|
public static String getChatFormat(TownyChatEvent event) {
|
||||||
// Replace the {msg} here so it's not regex parsed.
|
// Replace the {msg} here so it's not regex parsed.
|
||||||
return replacer.replaceAll(event.getFormat(), event).replace("modplayername", "%1$s").replace("{msg}", "%2$s");
|
return replacer.replaceAll(event.getFormat(), event).replace("{modplayername}", "%1$s").replace("{msg}", "%2$s");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in new issue
Block a user