Database choice is now logged

This commit is contained in:
nossr50 2020-05-05 19:51:53 -07:00
parent fe2b7a8d61
commit 402283806d
2 changed files with 4 additions and 0 deletions

View File

@ -3,6 +3,7 @@ Version 2.1.128
Blast Mining nerf reverted
Fixed a few locale errors with commands
(API) Added ExperienceAPI::addCombatXP for adding combat XP to players, signature may change so its deprecated for now
mcMMO now logs whether or not its using FlatFile or SQL database on load
Version 2.1.127
Child Skills now have XP bars, they are hidden by default

View File

@ -59,13 +59,16 @@ public class DatabaseManagerFactory {
public static DatabaseManager createDatabaseManager(DatabaseType type) {
switch (type) {
case FLATFILE:
mcMMO.p.getLogger().info("Using FlatFile Database");
return new FlatfileDatabaseManager();
case SQL:
mcMMO.p.getLogger().info("Using SQL Database");
return new SQLDatabaseManager();
case CUSTOM:
try {
mcMMO.p.getLogger().info("Attempting to use Custom Database");
return createDefaultCustomDatabaseManager();
}
catch (Throwable e) {