initiate and disable storage providers.
This commit is contained in:
@@ -238,6 +238,9 @@ public class Config {
|
||||
FEED_BY_OTHER = config.getString("messages.command.feed.feed-by-other", FEED_BY_OTHER);
|
||||
}
|
||||
|
||||
public static String STORAGE_TYPE = "mysql";
|
||||
public static boolean AUTO_SAVE = true;
|
||||
public static int AUTO_SAVE_DELAY = 60;
|
||||
public static String MYSQL_IP = "localhost";
|
||||
public static String MYSQL_PORT = "3306";
|
||||
public static String MYSQL_DATABASE_NAME = "essentia";
|
||||
@@ -246,6 +249,9 @@ public class Config {
|
||||
public static int MYSQL_CONNECTIONS = 10;
|
||||
public static int MYSQL_QUEUE_DELAY = 5;
|
||||
private static void storage() {
|
||||
STORAGE_TYPE = config.getString("storage.type", STORAGE_TYPE);
|
||||
AUTO_SAVE = config.getBoolean("storage.auto-save", AUTO_SAVE);
|
||||
AUTO_SAVE_DELAY = config.getInt("storaeg.auto-save-delay", AUTO_SAVE_DELAY);
|
||||
MYSQL_IP = config.getString("storage.mysql.ip", MYSQL_IP);
|
||||
MYSQL_PORT = config.getString("storage.mysql.port", MYSQL_PORT);
|
||||
MYSQL_DATABASE_NAME = config.getString("storage.mysql.database", MYSQL_DATABASE_NAME);
|
||||
|
||||
Reference in New Issue
Block a user