1.14.4 How to get ALL Groups in LuckPerms to List?

Discussion in 'Spigot Plugin Development' started by GGGEDRSRO, Jan 26, 2020.

Thread Status:
Not open for further replies.
  1. Please help!! How to get all LuckPerms Groups to List with LuckPermsApi?
     
  2. LP 4.x or LP 5.x?
     
  3. -
     
    #3 GGGEDRSRO, Jan 26, 2020
    Last edited: Mar 23, 2021
  4. Code (Text):
    Set<Group> groups = api.getGroups();
    List<String> groupsList = new ArrayList<>();
           
    for(Group group : groups) {
        groupsList.add(group.getName());
    }
    Is this what you mean or?
     
    • Agree Agree x 1
    • Winner Winner x 1
  5. -
     
    #5 GGGEDRSRO, Jan 26, 2020
    Last edited: Mar 23, 2021
Thread Status:
Not open for further replies.