mirror of
https://github.com/RayzsYT/ProAntiTab.git
synced 2026-12-02 05:19:52 -05:00
Add Method
This commit is contained in:
1 parent
d3a6c371eb
commit
2f73ea6e4f
1 file changed
+6
@@ -98,6 +98,12 @@ public class GroupManager {
|
||||
return result;
|
||||
}
|
||||
|
||||
public static List<String> getGroupNames(String server) {
|
||||
List<String> result = new ArrayList<>();
|
||||
getGroupsByServer(server).forEach(group -> result.add(group.getGroupName()));
|
||||
return result;
|
||||
}
|
||||
|
||||
public static List<Group> getGroupsByServer(String server) {
|
||||
List<Group> result = new ArrayList<>();
|
||||
GROUPS.stream().filter(group -> Storage.isServer(server, group.getServerNames())).forEach(result::add);
|
||||
|
||||
Reference in new issue
Block a user