public interface BanList
BanList.Type
.Modifier and Type | Interface and Description |
---|---|
static class |
BanList.Type
Represents a ban-type that a
BanList may track. |
Modifier and Type | Method and Description |
---|---|
BanEntry |
addBan(String target,
String reason,
Date expires,
String source)
Adds a ban to the this list.
|
Set<BanEntry> |
getBanEntries()
Gets a set containing every
BanEntry in this list. |
BanEntry |
getBanEntry(String target)
Gets a
BanEntry by target. |
boolean |
isBanned(String target)
Gets if a
BanEntry exists for the target, indicating an active
ban status. |
void |
pardon(String target)
Removes the specified target from this list, therefore indicating a
"not banned" status.
|
BanEntry getBanEntry(String target)
BanEntry
by target.target
- entry parameter to search forBanEntry addBan(String target, String reason, Date expires, String source)
target
- the target of the banreason
- reason for the ban, null indicates implementation defaultexpires
- date for the ban's expiration (unban), or null to imply
foreversource
- source of the ban, null indicates implementation defaultSet<BanEntry> getBanEntries()
BanEntry
in this list.boolean isBanned(String target)
BanEntry
exists for the target, indicating an active
ban status.target
- the target to findBanEntry
exists for the name, indicating an
active ban status, false otherwisevoid pardon(String target)
target
- the target to remove from this listCopyright © 2015. All rights reserved.