public class BukkitPermissionsChecker extends PermissionsChecker
Constructor and Description |
---|
BukkitPermissionsChecker() |
Modifier and Type | Method and Description |
---|---|
boolean |
has(org.bukkit.command.CommandSender sender,
String perm,
boolean msg)
Checks if a user (no console) has a specific permission (globally).
|
boolean |
hasOnServer(org.bukkit.command.CommandSender sender,
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,
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,
String perm,
boolean msg)
Checks if a user (or console) has a specific permission (globally).
|
boolean |
hasOrConsoleOnServer(org.bukkit.command.CommandSender sender,
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,
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,
String permission)
Checks if a user (no console) has a specific permission (globally).
|
boolean |
hasPermOnServer(org.bukkit.command.CommandSender sender,
String permission)
Checks if a user (no console) has a specific permission on the current server.
|
boolean |
hasPermOnServerInWorld(org.bukkit.command.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(org.bukkit.command.CommandSender sender,
String permission)
Checks if a user (or console) has a specific permission (globally).
|
boolean |
hasPermOrConsoleOnServer(org.bukkit.command.CommandSender sender,
String permission)
Checks if a user (or console) has a specific permission on the current server.
|
boolean |
hasPermOrConsoleOnServerInWorld(org.bukkit.command.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(org.bukkit.command.CommandSender sender, String permission)
sender
- the command sender to check a permission forpermission
- the permission to checkpublic boolean hasPermOrConsole(org.bukkit.command.CommandSender sender, String permission)
sender
- the command sender to check a permission forpermission
- the permission to checkpublic boolean hasPermOnServer(org.bukkit.command.CommandSender sender, String permission)
sender
- the command sender to check a permission forpermission
- the permission to checkpublic boolean hasPermOrConsoleOnServer(org.bukkit.command.CommandSender sender, String permission)
sender
- the command sender to check a permission forpermission
- the permission to checkpublic boolean hasPermOnServerInWorld(org.bukkit.command.CommandSender sender, String permission)
sender
- the command sender to check a permission forpermission
- the permission to checkpublic boolean hasPermOrConsoleOnServerInWorld(org.bukkit.command.CommandSender sender, String permission)
sender
- the command sender to check a permission forpermission
- the permission to checkpublic boolean has(org.bukkit.command.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(org.bukkit.command.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(org.bukkit.command.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(org.bukkit.command.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(org.bukkit.command.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(org.bukkit.command.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.