Skip to content

Commit

Permalink
add getGroups()
Browse files Browse the repository at this point in the history
  • Loading branch information
Snabeldier committed Oct 25, 2024
1 parent 95a2cf2 commit 7eb332e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/main/java/minevalley/core/api/Core.java
Original file line number Diff line number Diff line change
Expand Up @@ -785,6 +785,15 @@ public static BankAccount createBankAccount(Registrant holder) {
return server.createBankAccount(holder);
}

/**
* Get all loaded groups.
*
* @return list of all groups
*/
public static List<Group> getGroups() {
return server.getGroups();
}

/**
* Gets the group (organization/company) with the specific name.
*
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/minevalley/core/api/CoreServer.java
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,8 @@ public interface CoreServer {

BankAccount createBankAccount(Registrant holder);

List<Group> getGroups();

Group getGroup(String name);

Region getRegion(int id);
Expand Down

0 comments on commit 7eb332e

Please sign in to comment.