public class ForwardToProxyBanProcessor extends Object implements BanProcessor
| Modifier and Type | Class and Description |
|---|---|
static class |
ForwardToProxyBanProcessor.Provider |
| Modifier and Type | Field and Description |
|---|---|
static String |
PROCESSOR_ID |
| Constructor and Description |
|---|
ForwardToProxyBanProcessor() |
| Modifier and Type | Method and Description |
|---|---|
BanResult |
executeBan(Ban ban)
Executes the given ban.
|
@Nullable Ban |
getActiveBan(UUID playerId) |
List<Ban> |
getActiveBanOnSameIP(String ip)
Get all active ban on the same IP
|
List<Ban> |
getAllBans()
Get all current ban.
|
List<String> |
getDescription()
Get the description of the processor, including what's not available with this
|
List<Ban> |
getLoggedBans(UUID playerId)
Get revoked ban of the specified player
Don't include active one
|
String |
getName()
Get the name of the processor
|
BanResult |
revokeBan(UUID playerId)
Revokes the active ban of the player identified by the given UUID.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisBanned, isHandledByNegativitypublic static final String PROCESSOR_ID
public BanResult executeBan(Ban ban)
BanProcessorThe ban may not be executed for any processor-specific reason.
executeBan in interface BanProcessorban - the ban to executepublic BanResult revokeBan(UUID playerId)
BanProcessorThe revocation may fail for any processor-specific reason.
If the revocation was successful a LoggedBan must always be returned, even if it will not persist in any way.
revokeBan in interface BanProcessorplayerId - the UUID of the player to unbannull if the revocation failed.public @Nullable Ban getActiveBan(UUID playerId)
getActiveBan in interface BanProcessorpublic List<Ban> getLoggedBans(UUID playerId)
BanProcessorgetLoggedBans in interface BanProcessorplayerId - the UUID of the player to get logged banpublic List<Ban> getActiveBanOnSameIP(String ip)
BanProcessorgetActiveBanOnSameIP in interface BanProcessorip - the IP where we are looking for banpublic List<Ban> getAllBans()
BanProcessorgetAllBans in interface BanProcessorpublic String getName()
BanProcessorgetName in interface BanProcessorpublic List<String> getDescription()
BanProcessorgetDescription in interface BanProcessor