public class BungeePermissionsChecker extends PermissionsChecker
Constructor and Description |
---|
BungeePermissionsChecker() |
Modifier and Type | Method and Description |
---|---|
boolean |
has(net.md_5.bungee.api.CommandSender sender,
String perm,
boolean msg)
Checks if a user (no console) has a specific permission (globally).
|
boolean |
hasOnServer(net.md_5.bungee.api.CommandSender sender,
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,
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,
String perm,
boolean msg)
Checks if a user (or console) has a specific permission (globally).
|
boolean |
hasOrConsoleOnServer(net.md_5.bungee.api.CommandSender sender,
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,
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,
String permission)
Checks if a user (no console) has a specific permission (globally).
|
boolean |
hasPermOnServer(net.md_5.bungee.api.CommandSender sender,
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,
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,
String permission)
Checks if a user (or console) has a specific permission (globally).
|
boolean |
hasPermOrConsoleOnServer(net.md_5.bungee.api.CommandSender sender,
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,
String permission)
Checks if a user (or console) has a specific permission on the current server and in the current world.
|
has, hasOnServer, hasOnServerInWorld, hasOrConsole, hasOrConsoleOnServer, hasOrConsoleOnServerInWorld, hasPerm, hasPerm, hasPermOnServer, hasPermOnServer, hasPermOnServerInWorld, hasPermOnServerInWorld, hasPermOrConsole, hasPermOrConsoleOnServer, hasPermOrConsoleOnServerInWorld, pm
public boolean hasPerm(net.md_5.bungee.api.CommandSender sender, String permission)
sender
- the command sender to check a permission forpermission
- the permission to checkpublic boolean hasPermOrConsole(net.md_5.bungee.api.CommandSender sender, String permission)
sender
- the command sender to check a permission forpermission
- the permission to checkpublic boolean hasPermOnServer(net.md_5.bungee.api.CommandSender sender, String permission)
sender
- the command sender to check a permission forpermission
- the permission to checkpublic boolean hasPermOrConsoleOnServer(net.md_5.bungee.api.CommandSender sender, String permission)
sender
- the command sender to check a permission forpermission
- the permission to checkpublic boolean hasPermOnServerInWorld(net.md_5.bungee.api.CommandSender sender, String permission)
sender
- the command sender to check a permission forpermission
- the permission to checkpublic boolean hasPermOrConsoleOnServerInWorld(net.md_5.bungee.api.CommandSender sender, String permission)
sender
- the command sender to check a permission forpermission
- the permission to checkpublic boolean has(net.md_5.bungee.api.CommandSender sender, String perm, boolean msg)
sender
- the command sender to check a permission forperm
- the permission to checkmsg
- if a no-permission message is send to the senderpublic boolean hasOrConsole(net.md_5.bungee.api.CommandSender sender, String perm, boolean msg)
sender
- the command sender to check a permission forperm
- the permission to checkmsg
- if a no-permission message is send to the senderpublic boolean hasOnServer(net.md_5.bungee.api.CommandSender sender, String perm, boolean msg)
sender
- the command sender to check a permission forperm
- the permission to checkmsg
- if a no-permission message is send to the senderpublic boolean hasOrConsoleOnServer(net.md_5.bungee.api.CommandSender sender, String perm, boolean msg)
sender
- the command sender to check a permission forperm
- the permission to checkmsg
- if a no-permission message is send to the senderpublic boolean hasOnServerInWorld(net.md_5.bungee.api.CommandSender sender, String perm, boolean msg)
sender
- the command sender to check a permission forperm
- the permission to checkmsg
- if a no-permission message is send to the senderpublic boolean hasOrConsoleOnServerInWorld(net.md_5.bungee.api.CommandSender sender, String perm, boolean msg)
sender
- the command sender to check a permission forperm
- the permission to checkmsg
- if a no-permission message is send to the senderCopyright © 2019. All rights reserved.