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
-
public class PermissionCheckEvent extends Event
Called when the permission of a CommandSender is checked.
-
-
Constructor Summary
Constructors Constructor Description PermissionCheckEvent(CommandSender sender, String permission, boolean hasPermission)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)StringgetPermission()The permission to check.CommandSendergetSender()The command sender being checked for a permission.inthashCode()booleanhasPermission()voidsetHasPermission(boolean hasPermission)The outcome of this permission check.StringtoString()
-
-
-
Constructor Detail
-
PermissionCheckEvent
public PermissionCheckEvent(CommandSender sender, String permission, boolean hasPermission)
-
-
Method Detail
-
hasPermission
public boolean hasPermission()
-
getSender
public CommandSender getSender()
The command sender being checked for a permission.
-
getPermission
public String getPermission()
The permission to check.
-
setHasPermission
public void setHasPermission(boolean hasPermission)
The outcome of this permission check.
-
canEqual
protected boolean canEqual(Object other)
-
-