java.lang.Object
me.github.simonplays15.betterbansystem.core.permissions.PermissionsManager
me.github.simonplays15.betterbansystem.core.permissions.LuckPermsManager

public class LuckPermsManager extends PermissionsManager
The LuckPermsManager class is responsible for managing permissions using the LuckPerms plugin. It extends the PermissionsManager class which provides common functionality for managing permissions.
  • Constructor Details

    • LuckPermsManager

      public LuckPermsManager() throws PermissionManagerLoadException
      The LuckPermsManager class is responsible for managing permissions using the LuckPerms plugin. It extends the PermissionsManager class which provides common functionality for managing permissions.
      Throws:
      PermissionManagerLoadException - if there is an error loading the LuckPermsManager
  • Method Details

    • hasPermission

      public boolean hasPermission (String playername, String permission)
      Checks if a player has a certain permission.
      Specified by:
      hasPermission in class PermissionsManager
      Parameters:
      playername - The name of the player.
      permission - The permission to check for.
      Returns:
      True if the player has the specified permission, false otherwise.
    • hasPermission

      public boolean hasPermission (org.bukkit.entity.Player player, String permission)
      Checks whether a player has the specified permission.
      Parameters:
      player - the player to check permissions for
      permission - the permission to check for
      Returns:
      true if the player has the permission, false otherwise
    • hasPermission

      public boolean hasPermission (org.bukkit.OfflinePlayer player, String permission)
      Checks whether the specified player has the given permission.
      Parameters:
      player - The OfflinePlayer to check permissions for
      permission - The permission to check
      Returns:
      true if the player has the permission, false otherwise