Skip to content

[FIX] Refactor player rank checks to use player object to fix condition ranks. - #228

Open
john-clardy wants to merge 1 commit into
hypherionmc:universalfrom
john-clardy:universal
Open

[FIX] Refactor player rank checks to use player object to fix condition ranks.#228
john-clardy wants to merge 1 commit into
hypherionmc:universalfrom
john-clardy:universal

Conversation

@john-clardy

@john-clardy john-clardy commented Jul 1, 2026

Copy link
Copy Markdown

This PR adds support for querying conditional/active FTB Ranks for online players while preserving the existing behavior for profile-based lookups.

Previously, CraterGameProfile lookups used RankManager.getAddedRanks(...), which only returns explicitly assigned ranks. This made it impossible for integrations to detect ranks granted through FTB Ranks conditions.

Changes
Updated FTB Ranks role synchronization to use getPlayerRanks(CraterPlayer) instead of the profile-based lookup. CraterLib Pull required to enable this.
Updated active rank checks during synchronization to use hasRank(CraterPlayer, String).

@hypherionmc hypherionmc added Type: Bug Something isn't working Status: Ready to Merge labels Aug 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants