Class GroupManager

java.lang.Object
org.galliumpowered.permission.GroupManager

public class GroupManager extends Object
  • Constructor Details

    • GroupManager

      public GroupManager()
  • Method Details

    • addGroup

      public void addGroup(Group group)
      Add a Group This does NOT add it to the database
      Parameters:
      group - the group
    • createGroup

      public void createGroup(Group group)
      Create a group and add it to the database
      Parameters:
      group - the group
    • removeGroup

      public void removeGroup(Group group)
      Remove a Group
      Parameters:
      group - the group
    • getGroups

      public ArrayList<Group> getGroups()
      Get the groups
      Returns:
      an ArrayList of the Groups
    • getGroupByName

      public Optional<Group> getGroupByName(String name)
      Get a group by its name
      Parameters:
      name - the name of the group
      Returns:
      the group