Repository navigation
Add a read-only vote streak progression menu - #1716
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
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2b59b83123
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| */ | ||
| private void loadVoteCommand() { | ||
| plugin.setVoteCommand(new ArrayList<>()); | ||
| com.bencodez.votingplugin.streaks.VoteStreaksCommand.register(plugin); |
There was a problem hiding this comment.
Preserve custom
/vote streaks command precedence
When AddCustomCommands is enabled and an existing custom entry uses Args: [streaks], this registers the built-in handler first, while custom handlers are appended later in loadVoteCommand() around line 4051; CommandVote stops after the first matching runCommand, so a drop-in upgrade silently replaces the administrator's configured message or commands with this menu. Skip the built-in on a custom collision or otherwise retain custom-handler precedence.
AGENTS.md reference: AGENTS.md:L44-L47
Useful? React with 👍 / 👎.
Adds
/vote streaks, a separate read-only inventory view of existing daily, weekly and monthly vote streaks and enabled configured milestones. It shows progress without claiming rewards or changing progression. Existing/vote,/vote streakand production menus retain their behavior; this feature is separate from the experimental GUI test branch.Existing enabled custom commands matching
streaks, including aliases, retain precedence. Added actual root-dispatch regression coverage.Permission:
VotingPlugin.Commands.Vote.Streaks(or the existing player command bundle). Optional title in GUI.yml:CHEST.VoteStreaks.Name, default&6Vote streaks; existing files need no manual migration. User loading stays on the persistence worker, inventory work uses the player owner scheduler, and exact holder/session checks isolate interactions and invalidate stale callbacks.Validation for the candidate published as
ccfe5f1cf132ceef257fa87e1598901b52adbe70(current master integrated; both streak-menu and setup-reminder shutdown cleanup retained):JAR SHA-256: 2811600d12548a09985f391b05f4c1f60cb96fcc78a6ed4e3cbfea2ad6531c08 (10,671,890 bytes, exceeding the advisory 10 MiB target). Package/resource checks passed. Hosted checks and reviews for this new commit remain pending; local source validation is not hosted clearance. These are unit/mocked integration and artifact checks; live Spigot/Paper/Folia and visual-client verification remain unperformed. External live-unload tools that disable owner scheduling are unsupported; use the plugin reload or a normal server restart. See docs/vote-streaks-menu.md for configuration and manual testing.
Summary by CodeRabbit
/vote streaksmenu showing current and best daily, weekly, and monthly streaks, plus paginated milestone progress.