public abstract class Blacklist extends Object
| Constructor and Description |
|---|
Blacklist(boolean useAsWhitelist) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
broadcastNotification(String msg)
Sends a notification to all subscribing users.
|
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.sk89q.guavabackport.cache.LoadingCache<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(File file)
Load the blacklist.
|
void |
notify(BlacklistEvent event,
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(File file) throws IOException
file - The file to load fromIOException - if an error occurred reading from the filepublic BlacklistEvent getLastEvent()
public void notify(BlacklistEvent event, String comment)
event - The event to notify aboutcomment - The comment to notify withpublic abstract void broadcastNotification(String msg)
msg - The message to broadcastpublic com.sk89q.guavabackport.cache.LoadingCache<String,com.sk89q.worldguard.blacklist.TrackedEvent> getRepeatingEventCache()
Copyright © 2015. All Rights Reserved.