Package org.bukkit
Interface BanList
public interface BanList
A ban list, containing bans of some 
BanList.Type.- 
Nested Class SummaryNested Classes
- 
Method SummaryModifier and TypeMethodDescriptionaddBan(@NotNull String target, @Nullable String reason, @Nullable Date expires, @Nullable String source) Adds a ban to this list.Gets a set containing everyBanEntryin this list.getBanEntry(@NotNull String target) Gets aBanEntryby target.booleanGets if aBanEntryexists for the target, indicating an active ban status.voidRemoves the specified target from this list, therefore indicating a "not banned" status.
- 
Method Details- 
getBanEntryGets aBanEntryby target.Bans by name for ban type NAMEare no longer supported and this method will return null when trying to request them. The replacement is bans by UUID.- Parameters:
- target- entry parameter to search for
- Returns:
- the corresponding entry, or null if none found
 
- 
addBan@Nullable @Nullable BanEntry addBan(@NotNull @NotNull String target, @Nullable @Nullable String reason, @Nullable @Nullable Date expires, @Nullable @Nullable String source) Adds a ban to this list. If a previous ban exists, this will update the previous entry.Bans by name for ban type NAMEare no longer supported and this method will return null when trying to request them. The replacement is bans by UUID.- Parameters:
- target- the target of the ban
- reason- reason for the ban, null indicates implementation default
- expires- date for the ban's expiration (unban), or null to imply forever
- source- source of the ban, null indicates implementation default
- Returns:
- the entry for the newly created ban, or the entry for the (updated) previous ban
 
- 
getBanEntriesGets a set containing everyBanEntryin this list.- Returns:
- an immutable set containing every entry tracked by this list
 
- 
isBannedGets if aBanEntryexists for the target, indicating an active ban status.Bans by name for ban type NAMEare no longer supported. The replacement is bans by UUID.- Parameters:
- target- the target to find
- Returns:
- true if a BanEntryexists for the name, indicating an active ban status, false otherwise
 
- 
pardonRemoves the specified target from this list, therefore indicating a "not banned" status.Bans by name for ban type NAMEare no longer supported. The replacement is bans by UUID.- Parameters:
- target- the target to remove from this list
 
 
-