Files
plugin-hub/plugins/betterbingo
Remi 584e8a8161 Bingo Plugin (#7559)
* Plugin for Bingo

* Plugin for Bingo

* Change for JSON

* Added support for Raids (COX, TOA, and TOB),
Added a notification for completion of the full board,
Added a notification for completion of a row,
Added more discord notifications for completions,
More refactoring to the code has been done.

* Created itemsByName map for O(1) lookups instead of O(n) linear searches improving performance in findAndMarkItem and loadSavedItems methods
Optimized Item Processing
Reduced redundant string comparisons and list iterations
Replaced stream operations with direct for-loop for better performance
Eliminated the need to create intermediate collections
Added proper clearing of the lookup map when resetting items
Improved checkForCompletions to only check diagonals when the item is actually on a diagonal
Reduced redundant calculations and boolean variables
Refactored more code
Fully Asynchronous Screenshot System (Replaced blocking CompletableFuture with a callback-based approach
                                      Implemented proper asynchronous handling within the frame listener
                                      Used scheduled tasks for retries instead of thread-blocking sleeps)
Better error handling and validation throughout
Simplified payload creation
Fixed issues with Discord webhook attachments

* Profile System & Anti-Cheat Implementation
- Created comprehensive profile management system allowing multiple bingo events
- Implemented profile-specific settings (item lists, URLs, refresh intervals)
- Added robust anti-cheat system with acquisition verification and logging
- Fixed item persistence issues when switching between profiles
- Enhanced profile deletion with automatic profile switching
- Improved error handling to prevent deleting the last profile
- Implemented settings configuration during profile creation
- Streamlined UI with intuitive profile management controls
- Optimized code performance and removed unused functionality
- Added to the Discord integration webhook for verification
2025-03-08 15:14:39 -05:00

120 B