org.bukkit
public interface BanList
BanList.Type
Modifier and Type | Interface and Description |
---|---|
static class |
BanList.Type
Represents the various types 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 ban list.
|
Set<BanEntry> |
getBanEntries()
Gets a set containing every
BanEntry in the BanList. |
BanEntry |
getBanEntry(String target)
Gets a
BanEntry by target. |
boolean |
isBanned(String target)
Gets if a
BanEntry exists for the target, indicating ban status |
void |
pardon(String target)
Removes the specified target from the 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. If null, the implementation default is assumedexpires
- Expiration Date of the ban. If null, "infinity" is assumedsource
- Source of the ban. If null, the implementation default is assumedSet<BanEntry> getBanEntries()
BanEntry
in the BanList.boolean isBanned(String target)
BanEntry
exists for the target, indicating ban statustarget
- Entry target to lookupBanEntry
exists for the name, indicating ban statusvoid pardon(String target)
target
- The target to remove from the listCopyright © 2014. All rights reserved.