Class PermissionChecker
java.lang.Object
preponderous.ponder.minecraft.bukkit.tools.PermissionChecker
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
checkPermission(org.bukkit.command.CommandSender sender, String permission)
boolean
checkPermission(org.bukkit.command.CommandSender sender, ArrayList<String> permissions)
boolean
checkPermissionAndInformSenderIfTheyDoNotHavePermission(org.bukkit.command.CommandSender sender, String permission)
-
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
- Parameters:
sender
- The sender of the command.permission
- The permission to check.- Returns:
- Whether the sender has the specified permission.
-