Interface LibertyBans


public interface LibertyBans
The main entry point to the LibertyBans API
Author:
A248
  • Method Details

    • getOmnibus

      space.arim.omnibus.Omnibus getOmnibus()
      Gets the Omnibus instance used for firing events and registering the instance
      Returns:
      the omnibus instance
    • getFuturesFactory

      space.arim.omnibus.util.concurrent.FactoryOfTheFuture getFuturesFactory()
      Gets the FactoryOfTheFuture used 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 of PunishmentDatabase, use of this method should be avoided in all but a few cases
      Returns:
      the punishment database
    • getFormatter

      PunishmentFormatter getFormatter()
      Gets the punishment formatter
      Returns:
      the formatter manager
    • 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