Skip to content

Commit caebd1f

Browse files
committed
Add BLOCK_CHAT_MESSAGE_TEXT_INPUTS option
1 parent b790ebb commit caebd1f

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

api/src/main/java/com/lunarclient/apollo/module/autotexthotkey/AutoTextHotkeyModule.java

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,21 @@ public final class AutoTextHotkeyModule extends ApolloModule {
6262
.defaultValue(new ArrayList<>(Arrays.asList("/sellall", "/msg", "/pay")))
6363
.notifyClient().build();
6464

65+
/**
66+
* Block chat message text inputs.
67+
*
68+
* @since 1.1.8
69+
*/
70+
public static final SimpleOption<Boolean> BLOCK_CHAT_MESSAGE_TEXT_INPUTS = Option.<Boolean>builder()
71+
.comment("Set to 'true' to block chat message text inputs, otherwise 'false'.")
72+
.node("block-chat-message-text-inputs").type(TypeToken.get(Boolean.class))
73+
.defaultValue(false).notifyClient().build();
74+
6575
AutoTextHotkeyModule() {
6676
this.registerOptions(
6777
AutoTextHotkeyModule.BLOCK_TEXT_INPUTS,
68-
AutoTextHotkeyModule.BLOCKED_TEXT_INPUTS
78+
AutoTextHotkeyModule.BLOCKED_TEXT_INPUTS,
79+
AutoTextHotkeyModule.BLOCK_CHAT_MESSAGE_TEXT_INPUTS
6980
);
7081
}
7182

docs/developers/modules/autotexthotkey.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,3 +83,9 @@ public void setBlockedTextInputs(List<String> blockedTextInputs) {
8383
- Values
8484
- Type: `List<String>`
8585
- Default: `["/sellall", "/msg", "/pay"]`
86+
87+
- __`BLOCK_CHAT_MESSAGE_TEXT_INPUTS`__
88+
- Whether to block all chat messages from being used as hotkeys.
89+
- Values
90+
- Type: `Boolean`
91+
- Default: `false`

0 commit comments

Comments
 (0)