mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-11-27 20:57:35 +01:00
Change from flatfile to sqlite by default
This commit is contained in:
parent
6234f55b96
commit
53590cf029
@ -610,10 +610,10 @@ public final class Settings extends YamlConfiguration {
|
||||
private static DataSourceType getDataSource() {
|
||||
String key = "DataSource.backend";
|
||||
try {
|
||||
return DataSource.DataSourceType.valueOf(configFile.getString(key).toUpperCase());
|
||||
return DataSource.DataSourceType.valueOf(configFile.getString(key, "sqlite").toUpperCase());
|
||||
} catch (IllegalArgumentException ex) {
|
||||
ConsoleLogger.showError("Unknown database backend; defaulting to file database");
|
||||
return DataSource.DataSourceType.FILE;
|
||||
return DataSource.DataSourceType.SQLITE;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -6,7 +6,7 @@ DataSource:
|
||||
# Username about Database Connection Infos
|
||||
mySQLUsername: authme
|
||||
# Can be set to : file, sqlite, mysql
|
||||
backend: file
|
||||
backend: sqlite
|
||||
# Column for storing players lastlogins
|
||||
mySQLColumnLastLogin: lastlogin
|
||||
# Database Name, use with converters or as SQLITE database name
|
||||
|
Loading…
Reference in New Issue
Block a user