Skip to content

Conversation

@ItsNature
Copy link
Collaborator

@ItsNature ItsNature commented Apr 9, 2025

Overview

Description:
The Auto Text Hotkey Module allows servers to provide a list of inputs that are blocked from being used within the Auto Text Hotkey Mod

Changes:
Available options

  • BLOCK_TEXT_INPUTS

    • Whether to use blocked text inputs in the BLOCKED_TEXT_INPUTS option.
    • Values
      • Type: Boolean
      • Default: false
  • BLOCKED_TEXT_INPUTS

    • A list of text inputs that are blocked and cannot be used by the user.
    • Values
      • Type: List<String>
      • Default: ["/sellall", "/msg", "/pay"]
  • BLOCK_CHAT_MESSAGE_TEXT_INPUTS

    • Whether to block all chat messages from being used as hotkeys.
    • Values
      • Type: Boolean
      • Default: false

Code Example:

Set blocked text inputs

private final AutoTextHotkeyModule autoTextHotkeyModule = Apollo.getModuleManager().getModule(AutoTextHotkeyModule.class);

public void setBlockedTextInputs(List<String> blockedTextInputs) {
    Options options = this.autoTextHotkeyModule.getOptions();
    options.set(AutoTextHotkeyModule.BLOCK_TEXT_INPUTS, true);
    options.set(AutoTextHotkeyModule.BLOCKED_TEXT_INPUTS, blockedTextInputs);
}

Block chat message text inputs

private final AutoTextHotkeyModule autoTextHotkeyModule = Apollo.getModuleManager().getModule(AutoTextHotkeyModule.class);

public void setBlockChatMesssageTextInputs(boolean value) {
    this.autoTextHotkeyModule.getOptions().set(AutoTextHotkeyModule.BLOCK_CHAT_MESSAGE_TEXT_INPUTS, value);
}

Review Request Checklist

  • Your code follows the style guidelines of this project.
  • I have performed a self-review of my code.
  • I have tested this change myself. (If applicable)
  • I have made corresponding changes to the documentation. (If applicable)
  • The branch name follows the projects naming conventions. (e.g. feature/add-module & bugfix/fix-issue)

@ItsNature ItsNature added the type: Enhancement Feature improvement or addition label Apr 9, 2025
@ItsNature ItsNature merged commit 114a78a into version/1.1.8 Apr 10, 2025
2 checks passed
@ItsNature ItsNature deleted the feature/auto-text-hotkey-module branch April 10, 2025 19:19
@ItsNature ItsNature mentioned this pull request Apr 25, 2025
ItsNature added a commit that referenced this pull request May 5, 2025
* Deploy as 1.1.7-SNAPSHOT

* Various documentation improvements (#185)

* fixes

* remove unnecessary headers

* remove unnecessary headers from beam module

* remove unnecessary headers

* test

* use bold instead of header

* update border color

* Lightweight Documentation Fixes & Improvements (#186)

* Fix waypoint warning hyperlink redirecting to the wrong page

* Remove @type from Team json example

* better live chat message example

* Add new modules & versions (#187)

* Fix Rich Presence Module not working on bungee & velocity (#189)

* Docs - Improvements (#188)

* Update Combat#DISABLE_MISS_PENALTY comment

* add callouts

* fix lightweight player detection examples not matching

---------

Co-authored-by: TrentinTheKid <25537885+TrentinTheKid@users.noreply.github.com>

* Add Combat module lightweight example docs (#191)

* Feature - NBT Apollo Modules (#195)

* Add Glint, Saturation & Inventory Apollo Modules

* Disable Inventory Module by default

* Feature - Inventory Module (#193)

* Inventory module implementation

* Add inventory to meta.json

* Add callout

* Fix commands format

* Add glint & saturation example integration

* Add unclickable to each item

* Update inventory code example

* Add inventory module overview

* docs: Add disabled by default callout

---------

Co-authored-by: TrentinTheKid <25537885+TrentinTheKid@users.noreply.github.com>

* Sync LunarClient Mods & Options (#196)

* Sync LunarClient Mods & Options

* Update version tags to 1.1.7

---------

Co-authored-by: LunarClient Bot <lc-bot@moonsworth.com>

* Documentation - Tebex Module (#199)

* Prepare tebex module for release

* Add Tebex Module documentation

* Fix import order

* minor changes

* Add TebexEmbeddedCheckoutSupport#UNSUPPORTED

---------

Co-authored-by: Trentin <25537885+TrentinTheKid@users.noreply.github.com>

* Bump to 1.1.7 (#197)

* Deploy as 1.1.8-SNAPSHOT

* Decouple Gradle Example Implementations into Separate Modules (#200)

* Split bukkit example implementations (API, Json & Proto) to its own gradle modules & improve deploy script

* Rename apollo test server in deploy script

* Remove TnT Countdown Bukkit implementation (#202)

* Feature - Auto Text Hotkey Module (#203)

* Add Auto Text Hotkey Module

* Add `BLOCK_TEXT_INPUTS` boolean option

* add overview

* add word

* Add `BLOCK_CHAT_MESSAGE_TEXT_INPUTS` option

* Add `BLOCK_CHAT_MESSAGE_TEXT_INPUTS` examples

---------

Co-authored-by: TrentinTheKid <25537885+TrentinTheKid@users.noreply.github.com>

* Test Framework - Add Apollo payload & Border collision tests    (#205)

* Add border collision test

* Improve payload & handshake detection

* Folia Support (#201)

* Add Folia Support

* Add folia to: bug-report.yml, deploy.yml, platform-utilities.mdx

* Register AutoTextHotkeyModule

* Register TntCountdownModule

* Add new download buttons

* Rescaled assets

* Use proper asset name

* Change background height

* Unchange beackground height

* bukkit-example plugin folia support

* chore: improved download page

* chore: update discord urls

* gradle: Fix dynamic dependencies

* Test deploy

* Undo deploy test changes

* Don't wrap title text

* Update Discord URLs

---------

Co-authored-by: Connor Lewis <50084106+imconnorngl@users.noreply.github.com>
Co-authored-by: TrentinTheKid <25537885+TrentinTheKid@users.noreply.github.com>

* Sync LunarClient Mods & Options (#206)

* Sync LunarClient Mods & Options

* Update version tags to 1.1.8

---------

Co-authored-by: LunarClient Bot <lc-bot@moonsworth.com>

* Bump to 1.1.8 (#207)

---------

Co-authored-by: Trentin <25537885+TrentinTheKid@users.noreply.github.com>
Co-authored-by: LunarClient Bot <lc-bot@moonsworth.com>
Co-authored-by: Connor Lewis <50084106+imconnorngl@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: Enhancement Feature improvement or addition

Development

Successfully merging this pull request may close these issues.

4 participants