Skip to content

[FIX] Revoke LuckPerms role on unlink and log grant failures - #129

Merged
makeevrserg merged 4 commits into
masterfrom
fix/luckperms-link
Oct 1, 2026
Merged

makeevrserg merged 4 commits into
masterfrom
fix/luckperms-link

Conversation

@makeevrserg

@makeevrserg makeevrserg commented Oct 1, 2026 •

Copy link
Copy Markdown
Member

Unlinking a player now revokes the LuckPerms group granted on link; /unlink previously only deleted the database row and the group stuck around.

Granting or revoking the LuckPerms group also logs the failure when LuckPerms rejects it (for example an invalid group name), instead of silently doing nothing. That path also stopped going through LuckPerms' own global singleton to build the group node, and now reuses the LuckPerms instance already resolved through this plugin's LuckPermsProvider.

Version 0.36.1.

Closes #81.

…them

LuckPerms' modifyUser() returns a future that failed silently when, for
example, the configured group name was invalid: the role never applied
and nothing told the admin why.
/unlink only deleted the link row, so the granted LuckPerms group stuck
around after unlinking.
InheritanceNode.builder(String) resolves LuckPerms through its own
global static singleton instead of the LuckPermsProvider this plugin
already injects for exactly that purpose.
@makeevrserg
makeevrserg merged commit b6d132f into master Oct 1, 2026
7 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.

[BUG] Link on luckperms doesnt work

1 participant