public class ShowAlertPermissionEvent extends PlayerEvent implements CancellableEvent
Constructor and Description |
---|
ShowAlertPermissionEvent(Player p,
NegativityPlayer np,
boolean hasBasicPerm) |
Modifier and Type | Method and Description |
---|---|
NegativityPlayer |
getNegativityPlayer() |
boolean |
hasBasicPerm()
Know if the player has the basic permission to see alert
|
boolean |
hasPerm()
Check if a player has the permission to see alert.
|
boolean |
isCancelled() |
void |
setCancelled(boolean c) |
getPlayer
public ShowAlertPermissionEvent(Player p, NegativityPlayer np, boolean hasBasicPerm)
public NegativityPlayer getNegativityPlayer()
public boolean hasBasicPerm()
public boolean hasPerm()
public boolean isCancelled()
isCancelled
in interface CancellableEvent
public void setCancelled(boolean c)
setCancelled
in interface CancellableEvent