diff --git a/pom.xml b/pom.xml
index 3264be2b..482a3aa4 100644
--- a/pom.xml
+++ b/pom.xml
@@ -64,7 +64,7 @@
io.lumine.xikage.mythicmobs
MythicMobs
- 4.5.0
+ 4.5.1
system
${basedir}/libs/MythicMobs-4.5.0.jar
@@ -108,7 +108,7 @@
me.clip
placeholderapi
- 2.0.6
+ 2.9.2
provided
diff --git a/src/main/java/com/gamingmesh/jobs/dao/JobsManager.java b/src/main/java/com/gamingmesh/jobs/dao/JobsManager.java
index 7447084d..c8d096b0 100644
--- a/src/main/java/com/gamingmesh/jobs/dao/JobsManager.java
+++ b/src/main/java/com/gamingmesh/jobs/dao/JobsManager.java
@@ -29,19 +29,19 @@ public class JobsManager {
if (dao != null)
dao.closeConnections();
switch (DbType) {
- case MySQL:
+ case SqLite:
DbType = DataBaseType.SqLite;
dao = startSqlite();
dao.setDbType(DbType);
break;
- case SqLite:
+ case MySQL:
DbType = DataBaseType.MySQL;
dao = startMysql();
dao.setDbType(DbType);
break;
}
- File f = new File(plugin.getDataFolder(), "generalConfig.yml");
+ File f = new File(Jobs.getFolder(), "generalConfig.yml");
YamlConfiguration config = YamlConfiguration.loadConfiguration(f);
config.set("storage.method", DbType.toString());
@@ -74,7 +74,7 @@ public class JobsManager {
DbType = DataBaseType.SqLite;
dao = startSqlite();
} else {
- Jobs.consoleMsg("&cInvalid storage method! Changing method to sqlite!");
+ Jobs.consoleMsg("&cInvalid storage method! Changing method to sqlite!");
c.getC().set("storage.method", "sqlite");
DbType = DataBaseType.SqLite;
dao = startSqlite();
@@ -83,7 +83,7 @@ public class JobsManager {
}
private synchronized JobsMySQL startMysql() {
- File f = new File(plugin.getDataFolder(), "generalConfig.yml");
+ File f = new File(Jobs.getFolder(), "generalConfig.yml");
YamlConfiguration config = YamlConfiguration.loadConfiguration(f);
String legacyUrl = config.getString("mysql-url");
if (legacyUrl != null) {
@@ -118,7 +118,7 @@ public class JobsManager {
}
private synchronized JobsSQLite startSqlite() {
- JobsSQLite data = new JobsSQLite(plugin, plugin.getDataFolder());
+ JobsSQLite data = new JobsSQLite(plugin, Jobs.getFolder());
data.initialize();
return data;
}