public class BlacklistEntry extends Object
| Constructor and Description |
|---|
BlacklistEntry(Blacklist blacklist)
Construct the object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
check(boolean useAsWhitelist,
BlacklistEvent event,
boolean forceRepeat,
boolean silent)
Method to handle the event.
|
List<Action> |
getActions(Class<? extends BlacklistEvent> eventCls)
Get the associated actions with an event.
|
String |
getComment() |
String[] |
getIgnoreGroups() |
String[] |
getIgnorePermissions() |
String |
getMessage() |
void |
setComment(String comment) |
void |
setIgnoreGroups(String[] ignoreGroups) |
void |
setIgnorePermissions(String[] ignorePermissions) |
void |
setMessage(String message) |
boolean |
shouldIgnore(LocalPlayer player)
Returns true if this player should be ignored.
|
public BlacklistEntry(Blacklist blacklist)
blacklist - The blacklist that contains this entrypublic String[] getIgnoreGroups()
public String[] getIgnorePermissions()
public void setIgnoreGroups(String[] ignoreGroups)
ignoreGroups - the ignoreGroups to setpublic void setIgnorePermissions(String[] ignorePermissions)
ignorePermissions - the ignorePermissions to setpublic String getMessage()
public void setMessage(String message)
message - the message to setpublic String getComment()
public void setComment(String comment)
comment - the comment to setpublic boolean shouldIgnore(@Nullable LocalPlayer player)
player - The player to checkpublic List<Action> getActions(Class<? extends BlacklistEvent> eventCls)
eventCls - The event's classpublic boolean check(boolean useAsWhitelist,
BlacklistEvent event,
boolean forceRepeat,
boolean silent)
useAsWhitelist - Whether this entry is being used in a whitelistevent - The event to checkforceRepeat - Whether to force repeating notifications even within the delay limitsilent - Whether to prevent notifications from happeningCopyright © 2015. All Rights Reserved.