Skip to content

Không load bossbar trên 1.8.8 - #89

Merged
amadeusmz merged 1 commit into
masterfrom
fix/1.8.8-bossbar
Oct 10, 2026
Merged

amadeusmz merged 1 commit into
masterfrom
fix/1.8.8-bossbar

Conversation

@minhh2792

@minhh2792 minhh2792 commented Sep 29, 2026 •

Copy link
Copy Markdown
Member

Summary by CodeRabbit

  • Bug Fixes
    • On unsupported 1.8 servers, boss-bar features are disabled and a warning is logged.
    • Configured boss bars are only applied on servers that support them.

@minhh2792
minhh2792 requested a review from amadeusmz September 29, 2026 17:03
@minhh2792 minhh2792 self-assigned this Sep 29, 2026
Copilot AI balanced review requested due to automatic review settings September 29, 2026 17:03

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@coderabbitai

coderabbitai Bot commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: 45adfcbf-ced9-4e55-84a0-a7c5d59437fa

📥 Commits

Reviewing files that changed from the base of the PR and between ff2f34d and cfa5066.

📒 Files selected for processing (2)
  • dotman-plugin/src/main/java/net/minevn/dotman/DotMan.kt
  • dotman-plugin/src/main/java/net/minevn/dotman/config/MilestonesMaster.kt

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.


📝 Walkthrough

Walkthrough

DotMan checks the Bukkit server version during enable and disables boss-bar support for versions starting with 1.8. MilestonesMaster uses that support flag to decide whether to load the configured boss bar.

Changes

Boss-bar support

Layer / File(s) Summary
Server version check
dotman-plugin/src/main/java/net/minevn/dotman/DotMan.kt
DotMan logs the Bukkit version during enable and sets bossBarSupported to false when the version starts with 1.8.
Milestone boss-bar configuration
dotman-plugin/src/main/java/net/minevn/dotman/config/MilestonesMaster.kt
MilestonesMaster parses and colors the configured boss bar only when bossBarSupported is true. Otherwise, it assigns null.

Priority: ➖ Normal

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Merge Risk: ⚪ Minimal · up to cfa50

The PR safely disables boss-bar loading on Bukkit 1.8 while preserving supported versions.

Security Architecture Review

Security architecture risk: 🔵 Low · up to cfa50

The change limits boss-bar creation on Bukkit 1.8 without showing a new player-controlled path to privileged behavior. The available evidence does not fully establish command authorization or all reload failure behavior.

Retained concerns
No architecture-level concerns identified.

Security review details

Security Blast Radius

  • inferred — The demonstrated effect is limited to milestone boss-bar resources on a server reporting Bukkit 1.8; the changed gate does not grant access to the configured console-command path.

Trust Boundaries and Controls

  • observed — The capability setter and version check are private, and startup establishes the flag before the configuration consumer reads it. Authorization of an existing command-triggered reload is not established by the inspected source, but reload does not change the flag.

Resilience and Maintainability Implications

  • inferred — Failure or overlapping reloads could leave an earlier boss-bar owner active because cleanup precedes replacement without an atomic transfer. This is an existing reload invariant gap, not a demonstrated regression from the version gate; the new 1.8 path avoids creating those bars.
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 25.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 4 functions across 2 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly describes the main change: preventing boss-bar loading on Minecraft 1.8.8.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@minhh2792

Copy link
Copy Markdown
Member Author

đã test

@amadeusmz
amadeusmz merged commit 4bb6378 into master Oct 10, 2026
2 checks passed
@amadeusmz
amadeusmz deleted the fix/1.8.8-bossbar branch October 10, 2026 08:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants