Class BungeeCordDefaultHandler

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

public class BungeeCordDefaultHandler extends PermissionsManager
BungeeCordDefaultHandler is a class that extends PermissionsManager and represents the default permissions handler for BungeeCord platforms.
  • Constructor Details

    • BungeeCordDefaultHandler

      public BungeeCordDefaultHandler()
      BungeeCordDefaultHandler is a class that extends PermissionsManager and represents the default permissions handler for BungeeCord platforms.
  • 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 (@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.