Adjust item link handler and move custom placeholders

This commit is contained in:
Draycia committed 2020-10-21 00:48:29 -07:00
1 parent 2eff673caa
commit 3314a51df8
4 files changed
+27 -22

No files matched your search

@@ -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()));
}
});