mirror of
				https://github.com/mcMMO-Dev/mcMMO.git
				synced 2025-11-04 02:53:43 +01:00 
			
		
		
		
	Database choice is now logged
This commit is contained in:
		@@ -3,6 +3,7 @@ Version 2.1.128
 | 
				
			|||||||
    Blast Mining nerf reverted
 | 
					    Blast Mining nerf reverted
 | 
				
			||||||
    Fixed a few locale errors with commands
 | 
					    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
 | 
					    (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
 | 
					Version 2.1.127
 | 
				
			||||||
    Child Skills now have XP bars, they are hidden by default
 | 
					    Child Skills now have XP bars, they are hidden by default
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -59,13 +59,16 @@ public class DatabaseManagerFactory {
 | 
				
			|||||||
    public static DatabaseManager createDatabaseManager(DatabaseType type) {
 | 
					    public static DatabaseManager createDatabaseManager(DatabaseType type) {
 | 
				
			||||||
        switch (type) {
 | 
					        switch (type) {
 | 
				
			||||||
            case FLATFILE:
 | 
					            case FLATFILE:
 | 
				
			||||||
 | 
					                mcMMO.p.getLogger().info("Using FlatFile Database");
 | 
				
			||||||
                return new FlatfileDatabaseManager();
 | 
					                return new FlatfileDatabaseManager();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            case SQL:
 | 
					            case SQL:
 | 
				
			||||||
 | 
					                mcMMO.p.getLogger().info("Using SQL Database");
 | 
				
			||||||
                return new SQLDatabaseManager();
 | 
					                return new SQLDatabaseManager();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            case CUSTOM:
 | 
					            case CUSTOM:
 | 
				
			||||||
                try {
 | 
					                try {
 | 
				
			||||||
 | 
					                    mcMMO.p.getLogger().info("Attempting to use Custom Database");
 | 
				
			||||||
                    return createDefaultCustomDatabaseManager();
 | 
					                    return createDefaultCustomDatabaseManager();
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
                catch (Throwable e) {
 | 
					                catch (Throwable e) {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user