How to check player's rank\group using LuckPerms

Hey developers! I just found a super easy way to check player's group\rank on our code using LuckPerms. As you know if you want to set a player to another group, you need to type a command : /lp user <player name> permission set group.<group name>. Example if I want to add a player to Builder group, I type /lp user <player name> permission set group.builder. So that player will get into a builder group and has permission group.builder. So, if you want to check that player's group, you just check the permission.
 

Buddelbubi

Member
I do not use LuckPerms, but you can try if(p.hasPermission("group.builder")){
///your staff
}
and add that perm to your group
 
Top