Class MySQLStorage
java.lang.Object
com.zetaplugins.essentialz.storage.Storage
com.zetaplugins.essentialz.storage.MySQLStorage
MySQLStorage is a concrete implementation of the Storage class that uses MySQL as the database backend.
-
Constructor Summary
ConstructorsConstructorDescriptionMySQLStorage(EssentialZ plugin, org.bukkit.configuration.file.FileConfiguration storageConfig) Constructs a MySQLStorage instance using the provided plugin and storage configuration. -
Method Summary
Modifier and TypeMethodDescriptionvoidInitializes the database by setting up necessary tables and structures.
-
Constructor Details
-
MySQLStorage
public MySQLStorage(EssentialZ plugin, org.bukkit.configuration.file.FileConfiguration storageConfig) Constructs a MySQLStorage instance using the provided plugin and storage configuration.- Parameters:
plugin- The EssentialZ plugin instance.storageConfig- The configuration file containing MySQL connection details.
-
-
Method Details
-
initializeDatabase
public void initializeDatabase()Description copied from class:StorageInitializes the database by setting up necessary tables and structures.- Specified by:
initializeDatabasein classStorage
-
getPlayerRepository
- Specified by:
getPlayerRepositoryin classStorage
-
getIgnoresRepository
- Specified by:
getIgnoresRepositoryin classStorage
-
getWarpsRepository
- Specified by:
getWarpsRepositoryin classStorage
-