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