Package net.md_5.bungee.api.event
Class PermissionCheckEvent
java.lang.Object
net.md_5.bungee.api.plugin.Event
net.md_5.bungee.api.event.PermissionCheckEvent
Called when the permission of a CommandSender is checked.
-
Constructor Summary
ConstructorDescriptionPermissionCheckEvent
(CommandSender sender, String permission, boolean hasPermission) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
The permission to check.The command sender being checked for a permission.int
hashCode()
boolean
void
setHasPermission
(boolean hasPermission) The outcome of this permission check.toString()
-
Constructor Details
-
PermissionCheckEvent
-
-
Method Details
-
hasPermission
public boolean hasPermission() -
getSender
The command sender being checked for a permission. -
getPermission
The permission to check. -
setHasPermission
public void setHasPermission(boolean hasPermission) The outcome of this permission check. -
toString
-
equals
-
canEqual
-
hashCode
public int hashCode()
-