Interface LuckPermsModule

All Superinterfaces:
ModuleSimple

public interface LuckPermsModule extends ModuleSimple
Reads prefixes, suffixes and group weights from LuckPerms.
  • Method Details

    • config

      Description copied from interface: ModuleSimple
      The config section this module reads its settings from.
      Specified by:
      config in interface ModuleSimple
      Returns:
      the settings
    • permission

      Description copied from interface: ModuleSimple
      The permission that gates this module.
      Specified by:
      permission in interface ModuleSimple
      Returns:
      the permission
    • hasLuckPermission

      boolean hasLuckPermission(FPlayer fPlayer, String permission)
      Whether LuckPerms grants a node to a player.
      Parameters:
      fPlayer - the player
      permission - the node
      Returns:
      true if it is granted
    • isAlwaysHaveTrue

      boolean isAlwaysHaveTrue()
      Whether LuckPerms grants every node, which means its answers carry no information.
      Returns:
      true if every node is granted
    • getGroupWeight

      int getGroupWeight(FPlayer fPlayer)
      The weight of a player's highest group.
      Parameters:
      fPlayer - the player
      Returns:
      the weight
    • getSortWeight

      int getSortWeight(FPlayer fPlayer)
      The weight a player is sorted by in the tab list.
      Parameters:
      fPlayer - the player
      Returns:
      the weight
    • getPrefix

      String getPrefix(FPlayer fPlayer)
      The prefix LuckPerms gives a player.
      Parameters:
      fPlayer - the player
      Returns:
      the prefix, or an empty string if none is set
    • getSuffix

      String getSuffix(FPlayer fPlayer)
      The suffix LuckPerms gives a player.
      Parameters:
      fPlayer - the player
      Returns:
      the suffix, or an empty string if none is set
    • getGroups

      Set<String> getGroups()
      Every group defined in LuckPerms.
      Returns:
      the group names