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(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. 
 | 
@Nullable BanEntry getBanEntry(@NotNull String target)
BanEntry by target.target - entry parameter to search for@Nullable BanEntry addBan(@NotNull String target, @Nullable String reason, @Nullable Date expires, @Nullable 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 default@NotNull Set<BanEntry> getBanEntries()
BanEntry in this list.boolean isBanned(@NotNull
                 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(@NotNull
            String target)
target - the target to remove from this listCopyright © 2019. All rights reserved.