Class VaultPermissionsSystem

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

public class VaultPermissionsSystem extends PermissionsManager
The VaultPermissionsSystem class is a concrete implementation of the PermissionsManager abstract class. It provides functionality for managing permissions using the Vault permissions system.
  • Constructor Details

    • VaultPermissionsSystem

      public VaultPermissionsSystem()
      The VaultPermissionsSystem class is a concrete implementation of the PermissionsManager abstract class. It provides functionality for managing permissions using the Vault 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 specified player has the given permission.
      Parameters:
      player - The player to check the permission for. 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)
      Checks if the given player has the specified permission.
      Parameters:
      player - The player to check permission for. Must not be null.
      Returns:
      True if the player has the permission, false otherwise.