Class PermissionChecker

java.lang.Object
preponderous.ponder.minecraft.bukkit.tools.PermissionChecker

public class PermissionChecker extends Object
  • Constructor Details

    • PermissionChecker

      public PermissionChecker()
  • Method Details

    • checkPermissionAndInformSenderIfTheyDoNotHavePermission

      public boolean checkPermissionAndInformSenderIfTheyDoNotHavePermission(org.bukkit.command.CommandSender sender, String permission)
      Parameters:
      sender - The sender of the command.
      permission - The permission to check.
      Returns:
      Whether the sender has the specified permission.
    • checkPermission

      public boolean checkPermission(org.bukkit.command.CommandSender sender, ArrayList<String> permissions)
      Parameters:
      sender - The sender of the command.
      permissions - The permission to check.
      Returns:
      Whether the sender has one of the specified permissions.
    • checkPermission

      public boolean checkPermission(org.bukkit.command.CommandSender sender, String permission)
      Parameters:
      sender - The sender of the command.
      permission - The permission to check.
      Returns:
      Whether the sender has the specified permission.