Skip to content

Commit

Permalink
Merge branch '1.20.4' into 1.21.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rfresh2 committed Jul 3, 2024
2 parents 4d8052f + 316e236 commit adb105f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/main/java/com/zenith/command/impl/ChatRelayCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public CommandUsage commandUsage() {
"whisperMentions on/off",
"nameMentions on/off",
"mentionsWhileConnected on/off",
"ignoreQueue on/off",
"sendMessages on/off"
)
);
Expand Down Expand Up @@ -115,6 +116,13 @@ public LiteralArgumentBuilder<CommandContext> register() {
.title("Mentions While Connected " + toggleStrCaps(CONFIG.discord.chatRelay.mentionWhileConnected));
return 1;
})))
.then(literal("ignoreQueue")
.then(argument("toggle", toggle()).executes(c -> {
CONFIG.discord.chatRelay.ignoreQueue = getToggle(c, "toggle");
c.getSource().getEmbed()
.title("Ignore Queue " + toggleStrCaps(CONFIG.discord.chatRelay.ignoreQueue));
return 1;
})))
.then(literal("sendMessages")
.then(argument("toggle", toggle()).executes(c -> {
CONFIG.discord.chatRelay.sendMessages = getToggle(c, "toggle");
Expand All @@ -136,6 +144,7 @@ public void postPopulate(final Embed builder) {
.addField("Whisper Mentions", toggleStr(CONFIG.discord.chatRelay.mentionRoleOnWhisper), false)
.addField("Name Mentions", toggleStr(CONFIG.discord.chatRelay.mentionRoleOnNameMention), false)
.addField("Mentions While Connected", toggleStr(CONFIG.discord.chatRelay.mentionWhileConnected), false)
.addField("Ignore Queue", toggleStr(CONFIG.discord.chatRelay.ignoreQueue), false)
.addField("Send Messages", toggleStr(CONFIG.discord.chatRelay.sendMessages), false)
.primaryColor();
}
Expand Down

0 comments on commit adb105f

Please sign in to comment.