public class SpongeBanProcessor extends Object implements BanProcessor
Modifier and Type | Class and Description |
---|---|
static class |
SpongeBanProcessor.Provider |
Constructor and Description |
---|
SpongeBanProcessor() |
Modifier and Type | Method and Description |
---|---|
BanResult |
executeBan(Ban ban) |
@Nullable Ban |
getActiveBan(UUID playerId) |
List<Ban> |
getActiveBanOnSameIP(String ip) |
List<Ban> |
getAllBans() |
List<String> |
getDescription() |
List<Ban> |
getLoggedBans(UUID playerId) |
String |
getName() |
boolean |
isBanned(UUID playerId) |
@Nullable BanResult |
revokeBan(UUID playerId) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isHandledByNegativity
public BanResult executeBan(Ban ban)
executeBan
in interface BanProcessor
public @Nullable BanResult revokeBan(UUID playerId)
revokeBan
in interface BanProcessor
public boolean isBanned(UUID playerId)
isBanned
in interface BanProcessor
public @Nullable Ban getActiveBan(UUID playerId)
getActiveBan
in interface BanProcessor
public List<Ban> getLoggedBans(UUID playerId)
getLoggedBans
in interface BanProcessor
public List<Ban> getActiveBanOnSameIP(String ip)
getActiveBanOnSameIP
in interface BanProcessor
public String getName()
getName
in interface BanProcessor
public List<String> getDescription()
getDescription
in interface BanProcessor
public List<Ban> getAllBans()
getAllBans
in interface BanProcessor