-
Notifications
You must be signed in to change notification settings - Fork 59
Update AutoHeal.java and Commands.java #816
Conversation
Improve Hypixel mode of Step Add 'Fix hypixel switch (beta)' to KillAura
Add "Store","Timer" mode to rapid fire of RageBot Add No spread to RageBot Add ignoreTeammatesCSGO to RageBot Fix RageBot select hit pos wrongly Add Snap mode to AntiAim Add onlyWhileSneaking to AntiAim Fix freeze issue of HypixelMotionDisabler Fix Post issue of RageBot Fix WatchdogAutoPhase Fix bad packet send/receive
Fix LegitNoSpread keep switching Add 'Legit switch' to rapid fire Fix SnapAntiAim rotate wrongly Fix StoreRapidFire always store
Add window title Add 'reflection' to Script API. Example: ```java reflection.set( modules.getModule("TimerRange"), "hasLag", 0 ); ``` In this case, we reset the 'hasLag' variable of TimerRange module to 0. reflection allows to change the module itself. See ```keystrokesmod.utility.Reflection``` to know more about the reflection API.
Co-authored-by: xia__mc <2052472631@qq.com>
Stop using deprecation feature (event bus) Remove SilenceIRC
Add AutoClickA check
📝 WalkthroughWalkthroughThe changes made in this pull request involve significant updates to the Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant AutoHeal
participant Inventory
participant Commands
User->>AutoHeal: Activate AutoHeal
AutoHeal->>Inventory: Check for goldenHead
alt goldenHead toggled
Inventory->>AutoHeal: Found ItemSkull
else goldenHeadName toggled
Inventory->>AutoHeal: Check item display name
else soup toggled
Inventory->>AutoHeal: Use ItemSoup
end
AutoHeal->>User: Healing item used
User->>Commands: Execute silenceirc qqId
Commands->>Commands: Validate command
Commands->>Commands: Update SilenceIRC.qqId
Commands->>User: Confirm qqId set
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 2
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: ASSERTIVE
📒 Files selected for processing (2)
- src/main/java/keystrokesmod/module/impl/player/AutoHeal.java (5 hunks)
- src/main/java/keystrokesmod/utility/Commands.java (6 hunks)
🧰 Additional context used
📓 Learnings (2)
📓 Common learnings
Learnt from: qloha PR: xia-mc/Raven-XD#814 File: src/main/java/keystrokesmod/module/impl/player/AutoHeal.java:32-34 Timestamp: 2024-10-06T23:23:36.721Z Learning: In the `AutoHeal` module (`src/main/java/keystrokesmod/module/impl/player/AutoHeal.java`), the inconsistent capitalization in setting names like "Golden head", "Check golden Head name", and "Soup" is intentional and should not be flagged in future reviews.
src/main/java/keystrokesmod/module/impl/player/AutoHeal.java (1)
Learnt from: qloha PR: xia-mc/Raven-XD#814 File: src/main/java/keystrokesmod/module/impl/player/AutoHeal.java:32-34 Timestamp: 2024-10-06T23:23:36.721Z Learning: In the `AutoHeal` module (`src/main/java/keystrokesmod/module/impl/player/AutoHeal.java`), the inconsistent capitalization in setting names like "Golden head", "Check golden Head name", and "Soup" is intentional and should not be flagged in future reviews.
🔇 Additional comments (6)
src/main/java/keystrokesmod/utility/Commands.java (3)
16-16
: Import statement added for SilenceIRCThe addition of the import statement for
SilenceIRC
is consistent with the introduction of new functionality related to SilenceIRC in this file.
297-299
: Improved case-insensitive module name matching for bind commandThe introduction of
moduleNameInput
and the use ofequalsIgnoreCase()
for module name comparison enhances the user experience by making thebind
command case-insensitive. This change aligns well with the PR objectives and improves the overall usability of the command system.
539-539
: Addedsilenceirc
command to help menuThe
silenceirc
command has been appropriately added to the help menu, ensuring that users can discover and learn about this new functionality.src/main/java/keystrokesmod/module/impl/player/AutoHeal.java (3)
17-23
: Settings are correctly declaredThe settings
goldenHead
,goldenHeadName
,soup
, andautoDrop
are properly declared asButtonSetting
instances, enhancing the module's configurability.
31-35
: Settings are registered with appropriate dependenciesThe settings are registered correctly with dependencies managed using method references, ensuring that settings like
goldenHeadName
andautoDrop
are only active when their respective parent settings are toggled.
70-71
: Verify thatContainerUtils.getSlot(ItemSoup.class)
searches the entire inventoryEnsure that the
getSlot
method inContainerUtils
searches the entire inventory forItemSoup
items whensoup
is toggled. This will maintain consistency with the suggested change forgoldenHead
.You can run the following script to confirm the implementation:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't add 'SilenceFix' command to commands
@@ -497,6 +500,19 @@ public static void rCMD(@NotNull String c) { | |||
} | |||
print("&cInvalid profile.", 1); | |||
} | |||
} else if (firstArg.equals("silenceirc")) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have remove this module, so don't add it back
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Fix HypixelMotionDisabler Add PredictEngine for anticheat (test) Fix AutoBlockA and AutoClickerA falses
Manual merged |
<3 |
Fix HypixelMotionDisabler Add PredictEngine for anticheat (test) Fix AutoBlockA and AutoClickerA falses
Description
Testing
References
Summary by CodeRabbit
New Features
AutoHeal
module for improved healing item selection with new settings forgoldenHead
,soup
, andgoldenHeadName
.silenceirc
for setting aqqId
in theSilenceIRC
module.Bug Fixes
These updates streamline healing item management and enhance command functionality for a better user experience.