mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 13:16:45 +01:00
Database choice is now logged
This commit is contained in:
parent
fe2b7a8d61
commit
402283806d
@ -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
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user