-
Notifications
You must be signed in to change notification settings - Fork 1
feat: implement confinement analysis to detect AFK pools and similar … #15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
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.
Pull request overview
This PR implements a confinement analysis system to detect AFK pools and similar behaviors where players move significantly but remain confined to a small area. The feature tracks total distance traveled versus displacement over time to identify patterns characteristic of AFK farming setups like water pools, piston pushers, and circle macros.
Key changes:
- Added confinement tracking to PlayerBehaviorData with distance accumulation and radius-based detection
- Integrated confinement checking into BehaviorAnalysisTask to trigger suspicion when thresholds are exceeded
- Added configuration options for confinement radius, duration, and minimum distance requirements
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 10 comments.
Show a summary per file
| File | Description |
|---|---|
| config.yml | Added confinement-check configuration section with duration, radius, and minimum distance settings |
| ConfigManager.java | Added configuration fields and getters for confinement check parameters with appropriate comments |
| PlayerBehaviorData.java | Implemented confinement tracking logic with distance accumulation and radius-based reset mechanisms |
| PlayerMovementListener.java | Integrated processMovement call to track confinement on every player movement |
| BehaviorAnalysisTask.java | Added confinement detection logic that triggers bot challenge when thresholds are met |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…behaviors