Class SpigotPermissionsHandler
java.lang.Object
me.github.simonplays15.betterbansystem.core.permissions.PermissionsManager
me.github.simonplays15.betterbansystem.core.permissions.SpigotPermissionsHandler
The SpigotPermissionsHandler class is a subclass of PermissionsManager that provides
a specific implementation
for managing permissions using the Spigot permissions system.
-
Field Summary
Fields inherited from class me.github.simonplays15.betterbansystem.core.permissions.PermissionsManager
handlerType
-
Constructor Summary
ConstructorsConstructorDescriptionThe SpigotPermissionsHandler class is a subclass of PermissionsManager that provides a specific implementation for managing permissions using the Spigot permissions system. -
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 given player has the specified permission.boolean
hasPermission
(org.bukkit.OfflinePlayer player) This method checks if the specified player has the given permission.Methods inherited from class me.github.simonplays15.betterbansystem.core.permissions.PermissionsManager
getAvailableManager, getHandler, toString
-
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
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 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.
-