Interface LibertyBans
public interface LibertyBans
The main entry point to the LibertyBans API
- Author:
- A248
-
Method Summary
Modifier and TypeMethodDescriptionGets the account supervisor for alt detection and managementGets the punishment database.Gets the punishment drafter used for creating punishmentsGets the punishment formatterspace.arim.omnibus.util.concurrent.FactoryOfTheFutureGets theFactoryOfTheFutureused to create futuresspace.arim.omnibus.OmnibusGets theOmnibusinstance used for firing events and registering the instanceGets the punishment revoker used for undoing punishmentsGets the scope manager used to create scopesGets the punishment selector used to select punishments from the databaseGets the user resolver for looking up UUIDs and names
-
Method Details
-
getOmnibus
space.arim.omnibus.Omnibus getOmnibus()Gets theOmnibusinstance used for firing events and registering the instance- Returns:
- the omnibus instance
-
getFuturesFactory
space.arim.omnibus.util.concurrent.FactoryOfTheFuture getFuturesFactory()Gets theFactoryOfTheFutureused to create futures- Returns:
- the factory of the future used
-
getDrafter
PunishmentDrafter getDrafter()Gets the punishment drafter used for creating punishments- Returns:
- the punishment drafter
-
getRevoker
PunishmentRevoker getRevoker()Gets the punishment revoker used for undoing punishments- Returns:
- the punishment revoker
-
getSelector
PunishmentSelector getSelector()Gets the punishment selector used to select punishments from the database- Returns:
- the punishment selector
-
getDatabase
PunishmentDatabase getDatabase()Gets the punishment database. Per the class javadoc ofPunishmentDatabase, use of this method should be avoided in all but a few cases- Returns:
- the punishment database
-
getFormatter
-
getScopeManager
ScopeManager getScopeManager()Gets the scope manager used to create scopes- Returns:
- the scope manager
-
getUserResolver
UserResolver getUserResolver()Gets the user resolver for looking up UUIDs and names- Returns:
- the user resolver
-
getAccountSupervisor
AccountSupervisor getAccountSupervisor()Gets the account supervisor for alt detection and management- Returns:
- the account supervisor
-