mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-02 14:38:49 +00:00
Add newline support to minimessage formats
This commit is contained in:
1 parent
81350da208
commit
e0c37385d5
1 file changed
+2
@@ -102,6 +102,7 @@ public class SimpleChatChannel extends ChatChannel {
|
||||
|
||||
// Get formatted message
|
||||
TextComponent formattedMessage = (TextComponent)MiniMessage.get().parse(formatEvent.getFormat(),
|
||||
"br", "\n",
|
||||
"color", "<color:" + color.toString() + ">",
|
||||
"phase", Long.toString(System.currentTimeMillis() % 25),
|
||||
"server", simpleChat.getConfig().getString("server-name", "Server"),
|
||||
@@ -145,6 +146,7 @@ public class SimpleChatChannel extends ChatChannel {
|
||||
String format = formatEvent.getFormat();
|
||||
|
||||
TextComponent newFormat = (TextComponent)MiniMessage.get().parse(format,
|
||||
"br", "\n",
|
||||
"color", "<color:" + userColor.toString() + ">",
|
||||
"phase", Long.toString(System.currentTimeMillis() % 25),
|
||||
"server", simpleChat.getConfig().getString("server-name", "Server"),
|
||||
|
||||
Reference in new issue
Block a user