Add custom placeholders to chat previews

TODO: add this to non-previewed chat
This commit is contained in:
Draycia committed 2022-07-09 21:00:38 -07:00
1 parent 12c2c3c7a1
commit 42b19ac672
3 files changed
+45

No files matched your search

@@ -63,6 +63,9 @@ public class PrimaryConfig {
@Comment("The suggestions shown when using the TAB key in chat.")
private List<String> customChatSuggestions = List.of();
@Comment("The placeholders replaced in chat messages, this WILL work with chat previews.")
private Map<String, String> chatPlaceholders = Map.of();
@Comment("Various settings related to pinging players in channels.")
private PingSettings pingSettings = new PingSettings();
@@ -96,6 +99,10 @@ public class PrimaryConfig {
return this.customChatSuggestions;
}
public @Nullable Map<String, String> chatPlaceholders() {
return this.chatPlaceholders;
}
public PingSettings pings() {
return this.pingSettings;
}