public class Blacklist
extends java.lang.Object
| Constructor and Description |
|---|
Blacklist(boolean useAsWhitelist) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
check(BlacklistEvent event,
boolean forceRepeat,
boolean silent)
Method to handle the event.
|
int |
getItemCount()
Get the number of individual items that have blacklist entries.
|
BlacklistEvent |
getLastEvent()
Get the last event.
|
BlacklistLoggerHandler |
getLogger()
Get the log.
|
com.google.common.cache.LoadingCache<java.lang.String,com.sk89q.worldguard.blacklist.TrackedEvent> |
getRepeatingEventCache() |
boolean |
isEmpty()
Returns whether the list is empty.
|
boolean |
isWhitelist()
Returns whether the blacklist is used as a whitelist.
|
void |
load(java.io.File file)
Load the blacklist.
|
void |
notify(BlacklistEvent event,
java.lang.String comment)
Notify administrators.
|
public boolean isEmpty()
public int getItemCount()
public boolean isWhitelist()
public BlacklistLoggerHandler getLogger()
public boolean check(BlacklistEvent event, boolean forceRepeat, boolean silent)
event - The event to checkforceRepeat - Whether to force quickly repeating notificationssilent - Whether to force-deny notificationspublic void load(java.io.File file)
throws java.io.IOException
file - The file to load fromjava.io.IOException - if an error occurred reading from the filepublic BlacklistEvent getLastEvent()
public void notify(BlacklistEvent event, java.lang.String comment)
event - The event to notify aboutcomment - The comment to notify withpublic com.google.common.cache.LoadingCache<java.lang.String,com.sk89q.worldguard.blacklist.TrackedEvent> getRepeatingEventCache()