Class BukkitPermissionsChecker
- java.lang.Object
-
- net.alpenblock.bungeeperms.PermissionsChecker
-
- net.alpenblock.bungeeperms.platform.bukkit.BukkitPermissionsChecker
-
public class BukkitPermissionsChecker extends PermissionsChecker
-
-
Constructor Summary
Constructors Constructor Description BukkitPermissionsChecker()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
has(org.bukkit.command.CommandSender sender, java.lang.String perm, boolean msg)
Checks if a user (no console) has a specific permission (globally).boolean
hasOnServer(org.bukkit.command.CommandSender sender, java.lang.String perm, boolean msg)
Checks if a user (no console) has a specific permission on the current server.boolean
hasOnServerInWorld(org.bukkit.command.CommandSender sender, java.lang.String perm, boolean msg)
Checks if a user (no console) has a specific permission on the current server and in the current world.boolean
hasOrConsole(org.bukkit.command.CommandSender sender, java.lang.String perm, boolean msg)
Checks if a user (or console) has a specific permission (globally).boolean
hasOrConsoleOnServer(org.bukkit.command.CommandSender sender, java.lang.String perm, boolean msg)
Checks if a user (or console) has a specific permission on the current server.boolean
hasOrConsoleOnServerInWorld(org.bukkit.command.CommandSender sender, java.lang.String perm, boolean msg)
Checks if a user (or console) has a specific permission on the current server and in the current world.boolean
hasPerm(org.bukkit.command.CommandSender sender, java.lang.String permission)
Checks if a user (no console) has a specific permission (globally).boolean
hasPermOnServer(org.bukkit.command.CommandSender sender, java.lang.String permission)
Checks if a user (no console) has a specific permission on the current server.boolean
hasPermOnServerInWorld(org.bukkit.command.CommandSender sender, java.lang.String permission)
Checks if a user (no console) has a specific permission on the current server and in the current world.boolean
hasPermOrConsole(org.bukkit.command.CommandSender sender, java.lang.String permission)
Checks if a user (or console) has a specific permission (globally).boolean
hasPermOrConsoleOnServer(org.bukkit.command.CommandSender sender, java.lang.String permission)
Checks if a user (or console) has a specific permission on the current server.boolean
hasPermOrConsoleOnServerInWorld(org.bukkit.command.CommandSender sender, java.lang.String permission)
Checks if a user (or console) has a specific permission on the current server and in the current world.-
Methods inherited from class net.alpenblock.bungeeperms.PermissionsChecker
has, hasOnServer, hasOnServerInWorld, hasOrConsole, hasOrConsoleOnServer, hasOrConsoleOnServerInWorld, hasPerm, hasPerm, hasPermOnServer, hasPermOnServer, hasPermOnServerInWorld, hasPermOnServerInWorld, hasPermOrConsole, hasPermOrConsoleOnServer, hasPermOrConsoleOnServerInWorld, pm
-
-
-
-
Method Detail
-
hasPerm
public boolean hasPerm(org.bukkit.command.CommandSender sender, java.lang.String permission)
Checks if a user (no console) has a specific permission (globally).- Parameters:
sender
- the command sender to check a permission forpermission
- the permission to check- Returns:
- the result of the permission check
-
hasPermOrConsole
public boolean hasPermOrConsole(org.bukkit.command.CommandSender sender, java.lang.String permission)
Checks if a user (or console) has a specific permission (globally). If sender is console this function return true.- Parameters:
sender
- the command sender to check a permission forpermission
- the permission to check- Returns:
- the result of the permission check
-
hasPermOnServer
public boolean hasPermOnServer(org.bukkit.command.CommandSender sender, java.lang.String permission)
Checks if a user (no console) has a specific permission on the current server.- Parameters:
sender
- the command sender to check a permission forpermission
- the permission to check- Returns:
- the result of the permission check
-
hasPermOrConsoleOnServer
public boolean hasPermOrConsoleOnServer(org.bukkit.command.CommandSender sender, java.lang.String permission)
Checks if a user (or console) has a specific permission on the current server.- Parameters:
sender
- the command sender to check a permission forpermission
- the permission to check- Returns:
- the result of the permission check
-
hasPermOnServerInWorld
public boolean hasPermOnServerInWorld(org.bukkit.command.CommandSender sender, java.lang.String permission)
Checks if a user (no console) has a specific permission on the current server and in the current world.- Parameters:
sender
- the command sender to check a permission forpermission
- the permission to check- Returns:
- the result of the permission check
-
hasPermOrConsoleOnServerInWorld
public boolean hasPermOrConsoleOnServerInWorld(org.bukkit.command.CommandSender sender, java.lang.String permission)
Checks if a user (or console) has a specific permission on the current server and in the current world.- Parameters:
sender
- the command sender to check a permission forpermission
- the permission to check- Returns:
- the result of the permission check
-
has
public boolean has(org.bukkit.command.CommandSender sender, java.lang.String perm, boolean msg)
Checks if a user (no console) has a specific permission (globally).- Parameters:
sender
- the command sender to check a permission forperm
- the permission to checkmsg
- if a no-permission message is send to the sender- Returns:
- the result of the permission check
-
hasOrConsole
public boolean hasOrConsole(org.bukkit.command.CommandSender sender, java.lang.String perm, boolean msg)
Checks if a user (or console) has a specific permission (globally).- Parameters:
sender
- the command sender to check a permission forperm
- the permission to checkmsg
- if a no-permission message is send to the sender- Returns:
- the result of the permission check
-
hasOnServer
public boolean hasOnServer(org.bukkit.command.CommandSender sender, java.lang.String perm, boolean msg)
Checks if a user (no console) has a specific permission on the current server.- Parameters:
sender
- the command sender to check a permission forperm
- the permission to checkmsg
- if a no-permission message is send to the sender- Returns:
- the result of the permission check
-
hasOrConsoleOnServer
public boolean hasOrConsoleOnServer(org.bukkit.command.CommandSender sender, java.lang.String perm, boolean msg)
Checks if a user (or console) has a specific permission on the current server.- Parameters:
sender
- the command sender to check a permission forperm
- the permission to checkmsg
- if a no-permission message is send to the sender- Returns:
- the result of the permission check
-
hasOnServerInWorld
public boolean hasOnServerInWorld(org.bukkit.command.CommandSender sender, java.lang.String perm, boolean msg)
Checks if a user (no console) has a specific permission on the current server and in the current world.- Parameters:
sender
- the command sender to check a permission forperm
- the permission to checkmsg
- if a no-permission message is send to the sender- Returns:
- the result of the permission check
-
hasOrConsoleOnServerInWorld
public boolean hasOrConsoleOnServerInWorld(org.bukkit.command.CommandSender sender, java.lang.String perm, boolean msg)
Checks if a user (or console) has a specific permission on the current server and in the current world.- Parameters:
sender
- the command sender to check a permission forperm
- the permission to checkmsg
- if a no-permission message is send to the sender- Returns:
- the result of the permission check
-
-