Class SpigotPermissionsHandler

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

public class SpigotPermissionsHandler extends PermissionsManager
The SpigotPermissionsHandler class is a subclass of PermissionsManager that provides a specific implementation for managing permissions using the Spigot permissions system.
  • Constructor Details

    • SpigotPermissionsHandler

      public SpigotPermissionsHandler()
      The SpigotPermissionsHandler class is a subclass of PermissionsManager that provides a specific implementation for managing permissions using the Spigot permissions system.
  • Method Details

    • hasPermission

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

      public boolean hasPermission (org.bukkit.entity.Player player, String permission)
      Checks if the given player has the specified permission.
      Parameters:
      player - The player whose permission is being checked. Must not be null.
      permission - The permission to check. Must not be null.
      Returns:
      true if the player has the permission, false otherwise.
    • hasPermission

      public boolean hasPermission (org.bukkit.OfflinePlayer player)
      This method checks if the specified player has the given permission.
      Parameters:
      player - The player for whom to check the permission.
      Returns:
      True if the player has the permission, false otherwise.