public interface BanList
BanList.Type
.Modifier and Type | Interface | Description |
---|---|---|
static class |
BanList.Type |
Represents a ban-type that a
BanList may track. |
Modifier and Type | Method | Description |
---|---|---|
BanEntry |
addBan(java.lang.String target,
java.lang.String reason,
java.util.Date expires,
java.lang.String source) |
Adds a ban to the this list.
|
java.util.Set<BanEntry> |
getBanEntries() |
Gets a set containing every
BanEntry in this list. |
BanEntry |
getBanEntry(java.lang.String target) |
Gets a
BanEntry by target. |
boolean |
isBanned(java.lang.String target) |
Gets if a
BanEntry exists for the target, indicating an active
ban status. |
void |
pardon(java.lang.String target) |
Removes the specified target from this list, therefore indicating a
"not banned" status.
|
BanEntry getBanEntry(java.lang.String target)
BanEntry
by target.target
- entry parameter to search forBanEntry addBan(java.lang.String target, java.lang.String reason, java.util.Date expires, java.lang.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 defaultjava.util.Set<BanEntry> getBanEntries()
BanEntry
in this list.boolean isBanned(java.lang.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(java.lang.String target)
target
- the target to remove from this listCopyright © 2018. All rights reserved.