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 | 
|---|---|
@Nullable BanEntry | 
addBan(@NotNull String target,
      @Nullable String reason,
      @Nullable Date expires,
      @Nullable String source)
Adds a ban to the this list. 
 | 
@NotNull Set<BanEntry> | 
getBanEntries()
Gets a set containing every  
BanEntry in this list. | 
@Nullable BanEntry | 
getBanEntry(@NotNull String target)
Gets a  
BanEntry by target. | 
boolean | 
isBanned(@NotNull String target)
Gets if a  
BanEntry exists for the target, indicating an active
 ban status. | 
void | 
pardon(@NotNull String target)
Removes the specified target from this list, therefore indicating a
 "not banned" status. 
 | 
@Nullable @Nullable BanEntry getBanEntry(@NotNull @NotNull String target)
BanEntry by target.target - entry parameter to search for@Nullable @Nullable BanEntry addBan(@NotNull @NotNull String target, @Nullable @Nullable String reason, @Nullable @Nullable Date expires, @Nullable @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 @NotNull Set<BanEntry> getBanEntries()
BanEntry in this list.boolean isBanned(@NotNull
                 @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
            @NotNull String target)
target - the target to remove from this listCopyright © 2021. All rights reserved.