mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-03 14:38:51 +00:00
Adjust item link handler and move custom placeholders
This commit is contained in:
1 parent
2eff673caa
commit
3314a51df8
4 files changed
+27
-22
No files matched your search
+1
-1
@@ -14,7 +14,7 @@ public class CustomPlaceholderHandler {
|
||||
final CarbonChat carbonChat = CarbonChatProvider.carbonChat();
|
||||
|
||||
CarbonEvents.register(PreChatFormatEvent.class, PostOrders.FIRST, false, event -> {
|
||||
for (final Map.Entry<String, String> entry : carbonChat.carbonSettings().customPlaceholders().entrySet()) {
|
||||
for (final Map.Entry<String, String> entry : carbonChat.channelSettings().customPlaceholders().entrySet()) {
|
||||
event.format(event.format().replace("<" + entry.getKey() + ">", entry.getValue()));
|
||||
}
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user