Class Storage

java.lang.Object
com.zetaplugins.essentialz.storage.Storage
Direct Known Subclasses:
MySQLStorage, SQLiteStorage

public abstract class Storage extends Object
Abstract class representing the storage system for EssentialZ plugin. It provides methods to initialize the database and access various repositories.
  • Constructor Details

    • Storage

      public Storage(EssentialZ plugin)
      Constructs a Storage instance with the provided EssentialZ plugin.
      Parameters:
      plugin - The EssentialZ plugin instance.
  • Method Details

    • getPlugin

      protected EssentialZ getPlugin()
    • initializeDatabase

      public abstract void initializeDatabase()
      Initializes the database by setting up necessary tables and structures.
    • getPlayerRepository

      public abstract PlayerRepository getPlayerRepository()
    • getIgnoresRepository

      public abstract IgnoresRepository getIgnoresRepository()
    • getWarpsRepository

      public abstract WarpsRepository getWarpsRepository()