public class PermissionCheckEvent extends Event
Constructor and Description |
---|
PermissionCheckEvent(CommandSender sender,
String permission,
boolean hasPermission) |
Modifier and Type | Method and 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() |
public PermissionCheckEvent(CommandSender sender, String permission, boolean hasPermission)
public boolean hasPermission()
public CommandSender getSender()
public String getPermission()
public void setHasPermission(boolean hasPermission)
protected boolean canEqual(Object other)
Copyright © 2012–2020 SpigotMC. All rights reserved.