Class Group

java.lang.Object
org.galliumpowered.permission.Group

public class Group extends Object
  • Constructor Details

  • Method Details

    • getName

      public String getName()
      The name of the group
      Returns:
      Group name
    • getPermissions

      public ArrayList<String> getPermissions()
      The permissions the group holds
      Returns:
      Permisisons of the group
    • getPrefix

      public String getPrefix()
      Prefix of the group
      Returns:
      Group prefix
    • addPermission

      public void addPermission(String permission) throws SQLException
      Adds a permission to the group
      Parameters:
      permission - The permission to add
      Throws:
      SQLException
    • removePermission

      public void removePermission(String permission) throws SQLException
      Removes a permission from the group
      Parameters:
      permission - The permission to remove
      Throws:
      SQLException
    • hasPermission

      public boolean hasPermission(String permission)
      Whether the group has a specific permission
      Parameters:
      permission - The permission to check
      Returns:
      True if the permission is present, otherwise false
    • setPrefix

      public void setPrefix(String prefix)
      Sets the group's prefix. Supports colour coding with &
      Parameters:
      prefix - The prefix to set it to