BanList

public interface BanList

A ban list, containing bans of some Type.

Types

Link copied to clipboard
public enum Type
Represents ban-type that BanList may track.

Functions

Link copied to clipboard
public abstract BanEntry addBan(String target, String reason, Date expires, String source)
Adds ban to the this list.
Link copied to clipboard
public abstract Set<BanEntry> getBanEntries()
Gets set containing every BanEntry in this list.
Link copied to clipboard
public abstract BanEntry getBanEntry(String target)
Gets a BanEntry by target.
Link copied to clipboard
public abstract boolean isBanned(String target)
Gets if BanEntry exists for the target, indicating an active ban status.
Link copied to clipboard
public abstract void pardon(String target)
Removes the specified target from this list, therefore indicating "not banned" status.