Package com.sk89q.worldguard.blacklist
Class BlacklistEntry
java.lang.Object
com.sk89q.worldguard.blacklist.BlacklistEntry
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
check
(boolean useAsWhitelist, BlacklistEvent event, boolean forceRepeat, boolean silent) Method to handle the event.getActions
(Class<? extends BlacklistEvent> eventCls) Get the associated actions with an event.String[]
String[]
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.
-
Constructor Details
-
BlacklistEntry
Construct the object.- Parameters:
blacklist
- The blacklist that contains this entry
-
-
Method Details
-
getIgnoreGroups
- Returns:
- the ignoreGroups
-
getIgnorePermissions
- Returns:
- the ignoreGroups
-
setIgnoreGroups
- Parameters:
ignoreGroups
- the ignoreGroups to set
-
setIgnorePermissions
- Parameters:
ignorePermissions
- the ignorePermissions to set
-
getMessage
- Returns:
- the message
-
setMessage
- Parameters:
message
- the message to set
-
getComment
- Returns:
- the comment
-
setComment
- Parameters:
comment
- the comment to set
-
shouldIgnore
Returns true if this player should be ignored.- Parameters:
player
- The player to check- Returns:
- whether this player should be ignored for blacklist blocking
-
getActions
Get the associated actions with an event.- Parameters:
eventCls
- The event's class- Returns:
- The actions for the given event
-
check
public boolean check(boolean useAsWhitelist, BlacklistEvent event, boolean forceRepeat, boolean silent) Method to handle the event.- Parameters:
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 happening- Returns:
- Whether the action was allowed
-