-
Notifications
You must be signed in to change notification settings - Fork 58
Antibot now whitelists golems silverfishes and chickens #65
Conversation
Refactors the ClientSpoofer module to enhance its spoofing functionality and adaptability. Introduces more comprehensive spoofing methods for different clients and removes the redundant Forge packet cancellation. The update aims to improve the module's effectiveness in bypassing client checks.
Introduces an entity whitelisting mechanism to the AntiBot module. This allows specific entity types, such as Iron Golems, Silverfish, or Chickens, to be excluded from AntiBot checks. This enhancement provides finer control over AntiBot behavior, preventing accidental flagging of desired entities as bots.
WalkthroughThe Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant AntiBot
participant Entity
User->>AntiBot: Configure whitelist settings
AntiBot->>Entity: Detect entity
Activate AntiBot
AntiBot-->>Entity: Check if whitelist settings apply
Entity-->>AntiBot: Respond with entity type
AntiBot-->>User: Return isBot result
Deactivate AntiBot
Note over AntiBot: If whitelist settings match, <br/>entity is not flagged as bot.
Poem
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 as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
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: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- src/main/java/keystrokesmod/module/impl/world/AntiBot.java (4 hunks)
Additional comments not posted (4)
src/main/java/keystrokesmod/module/impl/world/AntiBot.java (4)
15-17
: Imports approved.The new imports for
EntityIronGolem
,EntitySilverfish
, andEntityChicken
are necessary for the new whitelisting functionality.
37-39
: Variable declarations approved.The new
ButtonSetting
variableswhitelistGolem
,whitelistSilverfish
, andwhitelistChicken
are correctly declared.
50-52
: Constructor changes approved.The new
ButtonSetting
variables are correctly registered in the constructor with appropriate labels.
115-123
: Changes toisBot
method approved.The new conditions for whitelisting
EntityIronGolem
,EntitySilverfish
, andEntityChicken
are correctly implemented.
Summary by CodeRabbit