Class BungeeCordDefaultHandler
java.lang.Object
me.github.simonplays15.betterbansystem.core.permissions.PermissionsManager
me.github.simonplays15.betterbansystem.core.permissions.BungeeCordDefaultHandler
BungeeCordDefaultHandler is a class that extends PermissionsManager and represents
the default permissions handler for BungeeCord platforms.
-
Field Summary
Fields inherited from class me.github.simonplays15.betterbansystem.core.permissions.PermissionsManager
handlerType -
Constructor Summary
ConstructorsConstructorDescriptionBungeeCordDefaultHandler is a class that extends PermissionsManager and represents the default permissions handler for BungeeCord platforms. -
Method Summary
Modifier and TypeMethodDescriptionbooleanhasPermission(@NotNull net.md_5.bungee.api.connection.ProxiedPlayer player, String permission) Checks if a player has a specific permission.booleanhasPermission(String playername, String permission) 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
-
BungeeCordDefaultHandler
public BungeeCordDefaultHandler()BungeeCordDefaultHandler is a class that extends PermissionsManager and represents the default permissions handler for BungeeCord platforms.
-
-
Method Details
-
hasPermission
Checks if the specified player has the given permission.- Specified by:
hasPermissionin classPermissionsManager- Parameters:
playername- the name of the playerpermission- the permission to check- Returns:
- true if the player has the permission, false otherwise
-
hasPermission
public boolean hasPermission(@NotNull @NotNull net.md_5.bungee.api.connection.ProxiedPlayer player, String permission) Checks if a player has a specific permission.- Parameters:
player- The player to check the permission for. Cannot be null.permission- The permission to check. Cannot be null.- Returns:
- True if the player has the permission, false otherwise.
-