LuckPerms

LuckPerms

41.4k Downloads

How to change the player group?

Eustiya opened this issue ยท 3 comments

commented

image
Pointed place without effect
Player is still in original group
plz help me fix this problem
be deeply grate ful

commented

setPrimaryGroup only works if the player has the group. See https://gitlab.com/nightborn_mc/bungee_side_plugins/blob/master/src/main/kotlin/me/voidcrafted/bungeeplugins/DiscordAuthenticator.kt#L37 for an example. If you wanted to set the group, replace my predicate in my if statement with one that returns true if the node is a group node

commented

thank you