mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-01 22:15:08 +00:00
Add custom placeholders to chat previews
TODO: add this to non-previewed chat
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user