Use shared vote counting policy in Bukkit listener - #1614
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (3)
Included review availability: Your plan provides up to 10 included reviews per hour; 5 remain after this review. 📜 Recent review details⏰ Context from checks skipped due to timeout. (2)
🧰 Additional context used📓 Path-based instructions (1)The Maven project lives in the `VotingPlugin/` subdirectory.📄 CodeRabbit inference engine (AGENTS.md) Files:
📝 WalkthroughWalkthrough
ChangesVote counting policy
Priority: ⬇️ Low Estimated code review effort: 3 (Moderate) | ~20 minutes Change: Refactor 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Comment |
Summary
Follow-up to #1608: the accepted Bukkit vote path now uses the platform-neutral
SharedVotePolicyfor its existing totals and points gate. The listener still calls the sameVotingPluginUsermethods in the same order. No reward API, reward configuration, event ingress, proxy routing, persistence, or reward delivery changes are included.This is a focused step toward sharing vote decisions with future platforms. It does not claim full
SharedVoteProcessorproduction integration or Fabric/Forge/NeoForge runtime support. Reward YAML continues to be read through the existing runtime path.Behavior preserved
event.addTotals,Config.AddTotals, andAddTotalsOfflineretain their current effects.Config.AddTotalsis false.wasOnlineremain in their existing paths.Validation
PlayerVoteListenerCountingPolicyTest,SharedVoteProcessorEndToEndTest, andSharedVoteProcessorRecoveryTest: 23 tests, no failures/errors.mvn -B -f VotingPlugin/pom.xml clean package: 1,222 unit tests plus one packaged-artifact test, no failures/errors.git diff --checkandunzip -tqq VotingPlugin/target/VotingPlugin.jar: passed.7c48a5075bf7377750923e8e245d543ad958c59e157b43c079ed5d264d3ba0e0.Summary by CodeRabbit
Bug Fixes
Tests