Skip to content

Comments

Add toggles for microbot blocking events#1600

Merged
chsami merged 1 commit intodevelopmentfrom
codex/add-config-for-disable-level-up-interface
Nov 10, 2025
Merged

Add toggles for microbot blocking events#1600
chsami merged 1 commit intodevelopmentfrom
codex/add-config-for-disable-level-up-interface

Conversation

@chsami
Copy link
Owner

@chsami chsami commented Nov 10, 2025

Summary

  • add microbot configuration options for disabling the level-up interface and world switcher confirmation
  • only execute the associated blocking events when their configuration toggles are enabled

Testing

  • not run (not requested)

Codex Task

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Nov 10, 2025

Caution

Review failed

The pull request is closed.

Walkthrough

The changes introduce two new configuration options to MicrobotConfig: disableLevelUpInterface and disableWorldSwitcherConfirmation, both defaulting to true. These options are then integrated into their respective event handlers—DisableLevelUpInterfaceEvent and DisableWorldSwitcherConfirmationEvent—which now include config-aware gating through a private isConfigEnabled() helper method. Both events now validate and execute their logic only when their corresponding configuration flags are enabled.

✨ Finishing touches
  • 📝 Generate docstrings

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 30a791c and 41b5d52.

📒 Files selected for processing (3)
  • runelite-client/src/main/java/net/runelite/client/plugins/microbot/MicrobotConfig.java (1 hunks)
  • runelite-client/src/main/java/net/runelite/client/plugins/microbot/util/events/DisableLevelUpInterfaceEvent.java (1 hunks)
  • runelite-client/src/main/java/net/runelite/client/plugins/microbot/util/events/DisableWorldSwitcherConfirmationEvent.java (1 hunks)

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@chsami chsami merged commit 7e13cc4 into development Nov 10, 2025
2 of 3 checks passed
@coderabbitai coderabbitai bot mentioned this pull request Nov 10, 2025
@chsami chsami deleted the codex/add-config-for-disable-level-up-interface branch November 16, 2025 11:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant