mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 21:26:46 +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
|
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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user