Class LuckPermsManager
java.lang.Object
me.github.simonplays15.betterbansystem.core.permissions.PermissionsManager
me.github.simonplays15.betterbansystem.core.permissions.LuckPermsManager
The LuckPermsManager class is responsible for managing permissions using the
LuckPerms plugin.
It extends the PermissionsManager class which provides common functionality for managing
permissions.
-
Field Summary
Fields inherited from class me.github.simonplays15.betterbansystem.core.permissions.PermissionsManager
handlerType
-
Constructor Summary
ConstructorsConstructorDescriptionThe LuckPermsManager class is responsible for managing permissions using the LuckPerms plugin. -
Method Summary
Modifier and TypeMethodDescriptionboolean
hasPermission
(String playername, String permission) Checks if a player has a certain permission.boolean
hasPermission
(org.bukkit.entity.Player player, String permission) Checks whether a player has the specified permission.boolean
hasPermission
(org.bukkit.OfflinePlayer player, String permission) Checks whether the specified player has the given permission.Methods inherited from class me.github.simonplays15.betterbansystem.core.permissions.PermissionsManager
getAvailableManager, getHandler, toString
-
Constructor Details
-
LuckPermsManager
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
Checks if a player has a certain permission.- Specified by:
hasPermission
in classPermissionsManager
- 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
Checks whether a player has the specified permission.- Parameters:
player
- the player to check permissions forpermission
- the permission to check for- Returns:
- true if the player has the permission, false otherwise
-
hasPermission
Checks whether the specified player has the given permission.- Parameters:
player
- The OfflinePlayer to check permissions forpermission
- The permission to check- Returns:
- true if the player has the permission, false otherwise
-