mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-01 22:15:08 +00:00
More options
This commit is contained in:
1 parent
1959148fb4
commit
95cfa7db52
6 files changed
+35
-14
No files matched your search
@@ -49,8 +49,11 @@ public class PartyChatChannel extends SimpleChatChannel {
|
||||
Component component = LegacyComponentSerializer.legacy('&').deserialize(messageFormat);
|
||||
messageFormat = MiniMessageSerializer.serialize(component);
|
||||
|
||||
// Continue parsing the format
|
||||
messageFormat = MiniMessageParser.handlePlaceholders(messageFormat, "color", "<" + getColor().toString() + ">");
|
||||
// First pass for placeholders, to support placeholders in placeholders
|
||||
messageFormat = MiniMessageParser.handlePlaceholders(messageFormat, "color", "<" + getColor().toString() + ">",
|
||||
"phase", Long.toString(System.currentTimeMillis() % 25), "server", getSimpleChat().getConfig().getString("server-name", "Server"));
|
||||
|
||||
// Finally, parse remaining placeholders and parse format
|
||||
messageFormat = MiniMessageParser.handlePlaceholders(messageFormat, "message", event.getMessage());
|
||||
|
||||
Component formattedMessage = MiniMessageParser.parseFormat(messageFormat);
|
||||
|
||||
Reference in new issue
Block a user