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 boolean
canEqual(Object other)
boolean
equals(Object o)
String
getPermission()
The permission to check.CommandSender
getSender()
The command sender being checked for a permission.int
hashCode()
boolean
hasPermission()
void
setHasPermission(boolean hasPermission)
The outcome of this permission check.String
toString()
-
-
-
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)
-
-