Class VaultPermissionsSystem
java.lang.Object
me.github.simonplays15.betterbansystem.core.permissions.PermissionsManager
me.github.simonplays15.betterbansystem.core.permissions.VaultPermissionsSystem
The VaultPermissionsSystem class is a concrete implementation of the
PermissionsManager abstract class.
It provides functionality for managing permissions using the Vault permissions system.
-
Field Summary
Fields inherited from class me.github.simonplays15.betterbansystem.core.permissions.PermissionsManager
handlerType
-
Constructor Summary
ConstructorsConstructorDescriptionThe VaultPermissionsSystem class is a concrete implementation of the PermissionsManager abstract class. -
Method Summary
Modifier and TypeMethodDescriptionboolean
hasPermission
(String playername, String permission) Checks if the specified player has the given permission.boolean
hasPermission
(org.bukkit.entity.Player player, String permission) Checks if the specified player has the given permission.boolean
hasPermission
(org.bukkit.OfflinePlayer player) Checks if the given player has the specified permission.Methods inherited from class me.github.simonplays15.betterbansystem.core.permissions.PermissionsManager
getAvailableManager, getHandler, toString
-
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
Checks if the specified player has the given permission.- Specified by:
hasPermission
in classPermissionsManager
- Parameters:
playername
- The name of the player.permission
- The permission to check.- Returns:
- True if the player has the permission, false otherwise.
-
hasPermission
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.
-