mirror of
https://github.com/darksaid98/TownyChat.git
synced 2026-12-02 22:23:18 +00:00
- Fixed missing {} around modplayername.
This commit is contained in:
1 parent
86d6cbea7c
commit
0923d35dd4
2 files changed
+3
-2
No files matched your search
+2
-1
@@ -5,4 +5,5 @@ v0.2:
|
||||
- changed PLAYER_CHAT event to run earlier so we triger before other chat plugins.
|
||||
If players are using chat modes we need to run first to cancel the chat event for other plugins.
|
||||
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) {
|
||||
// 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