Change from flatfile to sqlite by default

This commit is contained in:
Xephi59 2015-07-06 02:43:12 +02:00
parent 6234f55b96
commit 53590cf029
2 changed files with 3 additions and 3 deletions

View File

@ -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;
}
}

View File

@ -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