Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed Blacklist/Whitelist not being resepected #1680

Merged
merged 4 commits into from
Jul 8, 2024

Conversation

AwesomeBFM
Copy link
Contributor

fix #1557

Added getTopSelectedRole() method to DiscordSRV.java. Method calls getSelectedRoles() of the same scope and attempts to get the highest role the user has that is present in the selected roles.

Changes onRequest in PlaceholderAPIExpansion.java to use this new method rather than just fetching their highest role and ignoring selectedRoles. Additionally, removed logic getting a list of selected rules as it is not needed here.

…tSelectedRoles() of the same scope and attempts to get the highest role the user has that is present in the selected roles.

Changes onRequest in PlaceholderAPIExpansion.java to use this new method rather than just fetching their highest role and ignoring selectedRoles. Additionally removed logic getting a list of selected rules as it is not needed here.
@Dinty1 Dinty1 self-assigned this Jun 27, 2024
Copy link
Member

@Dinty1 Dinty1 left a comment

Choose a reason for hiding this comment

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

Seems to work perfectly

@Dinty1 Dinty1 requested a review from a team June 27, 2024 19:07
@Dinty1 Dinty1 removed their assignment Jun 27, 2024
Copy link
Member

@Dinty1 Dinty1 left a comment

Choose a reason for hiding this comment

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

After talking about this a bit more it’d be preferable if these were split out into different placeholders (ie top_selected_role)

@AwesomeBFM AwesomeBFM requested a review from Dinty1 June 29, 2024 17:18
@AwesomeBFM
Copy link
Contributor Author

Sounds good

@Scarsz Scarsz marked this pull request as draft July 1, 2024 21:43
@AwesomeBFM AwesomeBFM marked this pull request as ready for review July 3, 2024 02:08
Copy link
Member

@granny granny left a comment

Choose a reason for hiding this comment

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

Thank you for the PR! :)

@granny granny merged commit 93867d7 into DiscordSRV:develop Jul 8, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants