Class BungeePermissionsChecker
- java.lang.Object
-
- net.alpenblock.bungeeperms.PermissionsChecker
-
- net.alpenblock.bungeeperms.platform.bungee.BungeePermissionsChecker
-
public class BungeePermissionsChecker extends PermissionsChecker
-
-
Constructor Summary
Constructors Constructor Description BungeePermissionsChecker()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
has(net.md_5.bungee.api.CommandSender sender, java.lang.String perm, boolean msg)
Checks if a user (no console) has a specific permission (globally).boolean
hasOnServer(net.md_5.bungee.api.CommandSender sender, java.lang.String perm, boolean msg)
Checks if a user (no console) has a specific permission on the current server.boolean
hasOnServerInWorld(net.md_5.bungee.api.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(net.md_5.bungee.api.CommandSender sender, java.lang.String perm, boolean msg)
Checks if a user (or console) has a specific permission (globally).boolean
hasOrConsoleOnServer(net.md_5.bungee.api.CommandSender sender, java.lang.String perm, boolean msg)
Checks if a user (or console) has a specific permission on the current server.boolean
hasOrConsoleOnServerInWorld(net.md_5.bungee.api.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(net.md_5.bungee.api.CommandSender sender, java.lang.String permission)
Checks if a user (no console) has a specific permission (globally).boolean
hasPermOnServer(net.md_5.bungee.api.CommandSender sender, java.lang.String permission)
Checks if a user (no console) has a specific permission on the current server.boolean
hasPermOnServerInWorld(net.md_5.bungee.api.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(net.md_5.bungee.api.CommandSender sender, java.lang.String permission)
Checks if a user (or console) has a specific permission (globally).boolean
hasPermOrConsoleOnServer(net.md_5.bungee.api.CommandSender sender, java.lang.String permission)
Checks if a user (or console) has a specific permission on the current server.boolean
hasPermOrConsoleOnServerInWorld(net.md_5.bungee.api.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(net.md_5.bungee.api.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(net.md_5.bungee.api.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(net.md_5.bungee.api.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(net.md_5.bungee.api.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(net.md_5.bungee.api.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(net.md_5.bungee.api.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(net.md_5.bungee.api.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(net.md_5.bungee.api.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(net.md_5.bungee.api.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(net.md_5.bungee.api.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(net.md_5.bungee.api.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(net.md_5.bungee.api.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
-
-