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
 | 
			
		||||
    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) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user