File tree Expand file tree Collapse file tree 2 files changed +18
-1
lines changed
api/src/main/java/com/lunarclient/apollo/module/autotexthotkey Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 `
You can’t perform that action at this time.
0 commit comments